Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | reference |
struct | ref_table |
Functions | |
int | tipc_ref_table_init (u32 requested_size, u32 start) |
void | tipc_ref_table_stop (void) |
u32 | tipc_ref_acquire (void *object, spinlock_t **lock) |
void | tipc_ref_discard (u32 ref) |
void * | tipc_ref_lock (u32 ref) |
void * | tipc_ref_deref (u32 ref) |
u32 tipc_ref_acquire | ( | void * | object, |
spinlock_t ** | lock | ||
) |
tipc_ref_acquire - create reference to an object
Register an object pointer in reference table and lock the object. Returns a unique reference value that is used from then on to retrieve the object pointer, or to determine that the object has been deregistered.
Note: The object is returned in the locked state so that the caller can register a partially initialized object, without running the risk that the object will be accessed before initialization is complete.