Rev 1408 | Rev 1970 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1408 | Rev 1964 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /* |
1 | /* |
2 | * kref.c - library routines for handling generic reference counted objects |
2 | * kref.h - library routines for handling generic reference counted objects |
3 | * |
3 | * |
4 | * Copyright (C) 2004 Greg Kroah-Hartman |
4 | * Copyright (C) 2004 Greg Kroah-Hartman |
5 | * Copyright (C) 2004 IBM Corp. |
5 | * Copyright (C) 2004 IBM Corp. |
6 | * |
6 | * |
7 | * based on kobject.h which was: |
7 | * based on kobject.h which was: |
Line 19... | Line 19... | ||
19 | 19 | ||
20 | struct kref { |
20 | struct kref { |
21 | atomic_t refcount; |
21 | atomic_t refcount; |
Line 22... | Line -... | ||
22 | }; |
- | |
23 | 22 | }; |
|
24 | void kref_set(struct kref *kref, int num); |
23 | |
25 | void kref_init(struct kref *kref); |
24 | void kref_init(struct kref *kref); |
Line 26... | Line 25... | ||
26 | void kref_get(struct kref *kref); |
25 | void kref_get(struct kref *kref); |