24#ifndef ASTOBJ2_PRIVATE_H_
25#define ASTOBJ2_PRIVATE_H_
30#define AO2_DEVMODE_STAT(stat) stat
32#define AO2_DEVMODE_STAT(stat)
37 volatile int total_objects;
38 volatile int total_mem;
39 volatile int total_containers;
40 volatile int total_refs;
41 volatile int total_locked;
43extern struct ao2_stats ao2;
46void log_bad_ao2(
void *user_data,
const char *
file,
int line,
const char *func);
49#define __is_ao2_object(user_data, file, line, func) \
51 int ret ## __LINE__ = 0; \
53 ret ## __LINE__ = internal_is_ao2_object(user_data); \
55 if (!ret ## __LINE__) { \
56 log_bad_ao2(user_data, file, line, func); \
61#define is_ao2_object(user_data) \
62 __is_ao2_object(user_data, __FILE__, __LINE__, __PRETTY_FUNCTION__)
ao2_lock_req
Which lock to request.
enum ao2_lock_req __adjust_lock(void *user_data, enum ao2_lock_req lock_how, int keep_stronger)
void log_bad_ao2(void *user_data, const char *file, int line, const char *func)
int internal_is_ao2_object(void *user_data)