Data Fields | |
| size_t | data_size |
| ao2_destructor_fn | destructor_fn |
| uint32_t | magic |
| uint32_t | options |
| int | ref_counter |
astobj2 objects are always preceded by this data structure, which contains a reference counter, option flags and a pointer to a destructor. The refcount is used to decide when it is time to invoke the destructor. The magic number is used for consistency check.
| size_t data_size |
User data size for stats
Definition at line 53 of file astobj2.c.
Referenced by internal_ao2_alloc(), and internal_ao2_ref().
Definition at line 51 of file astobj2.c.
Referenced by __ao2_ref_debug(), internal_ao2_alloc(), and internal_ao2_ref().
| uint32_t magic |
magic number. This is used to verify that a pointer passed in is a valid astobj2
Definition at line 58 of file astobj2.c.
Referenced by internal_ao2_alloc(), and INTERNAL_OBJ().
| uint32_t options |
The ao2 object option flags
Definition at line 55 of file astobj2.c.
Referenced by __ao2_container_clone(), __ao2_container_clone_debug(), __ao2_lock(), __ao2_trylock(), __ao2_unlock(), adjust_lock(), ao2_object_get_lockaddr(), internal_ao2_alloc(), and internal_ao2_ref().
| int ref_counter |
Definition at line 50 of file astobj2.c.
Referenced by __ao2_ref_debug(), internal_ao2_alloc(), and internal_ao2_ref().