KREF_PUT
Section: (9)
Updated: 09 October 2005
Index
Return to Main Contents
NAME
kref_put - decrement refcount for object.
SYNOPSIS
"SYNOPSIS"
int kref_put (struct kref * kref, void (*release)
struct kref *kref);
ARGUMENTS
- kref
-
object.
- release
-
pointer to the function that will clean up the object when the
last reference to the object is released.
This pointer is required, and it is not acceptable to pass kfree
in as this function.
DESCRIPTION
Decrement the refcount, and if 0, call release.
Return 1 if the object was removed, otherwise return 0. Beware, if this
function returns 0, you still can not count on the kref from remaining in
memory. Only use the return value if you want to see if the kref is now
gone, not present.
Index
- NAME
-
- SYNOPSIS
-
- ARGUMENTS
-
- DESCRIPTION
-
This document was created by
man2html,
using the manual pages.
Time: 00:02:22 GMT, October 09, 2005