Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/idr.h
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | #define DEFINE_IDA(name) \ | ||||
struct ida name; \ | struct ida name; \ | ||||
SYSINIT(name##_ida_sysinit, SI_SUB_DRIVERS, SI_ORDER_FIRST, \ | SYSINIT(name##_ida_sysinit, SI_SUB_DRIVERS, SI_ORDER_FIRST, \ | ||||
ida_init, &(name)) | ida_init, &(name)) | ||||
void idr_preload(gfp_t gfp_mask); | void idr_preload(gfp_t gfp_mask); | ||||
void idr_preload_end(void); | void idr_preload_end(void); | ||||
void *idr_find(struct idr *idp, int id); | void *idr_find(struct idr *idp, int id); | ||||
void *idr_get_next(struct idr *idp, int *nextid); | void *idr_get_next(struct idr *idp, int *nextid); | ||||
bool idr_is_empty(struct idr *idp); | |||||
int idr_pre_get(struct idr *idp, gfp_t gfp_mask); | int idr_pre_get(struct idr *idp, gfp_t gfp_mask); | ||||
int idr_get_new(struct idr *idp, void *ptr, int *id); | int idr_get_new(struct idr *idp, void *ptr, int *id); | ||||
int idr_get_new_above(struct idr *idp, void *ptr, int starting_id, int *id); | int idr_get_new_above(struct idr *idp, void *ptr, int starting_id, int *id); | ||||
void *idr_replace(struct idr *idp, void *ptr, int id); | void *idr_replace(struct idr *idp, void *ptr, int id); | ||||
void idr_remove(struct idr *idp, int id); | void *idr_remove(struct idr *idp, int id); | ||||
void idr_remove_all(struct idr *idp); | void idr_remove_all(struct idr *idp); | ||||
void idr_destroy(struct idr *idp); | void idr_destroy(struct idr *idp); | ||||
void idr_init(struct idr *idp); | void idr_init(struct idr *idp); | ||||
int idr_alloc(struct idr *idp, void *ptr, int start, int end, gfp_t); | int idr_alloc(struct idr *idp, void *ptr, int start, int end, gfp_t); | ||||
int idr_alloc_cyclic(struct idr *idp, void *ptr, int start, int end, gfp_t); | int idr_alloc_cyclic(struct idr *idp, void *ptr, int start, int end, gfp_t); | ||||
int idr_for_each(struct idr *idp, int (*fn)(int id, void *p, void *data), void *data); | int idr_for_each(struct idr *idp, int (*fn)(int id, void *p, void *data), void *data); | ||||
#define idr_for_each_entry(idp, entry, id) \ | #define idr_for_each_entry(idp, entry, id) \ | ||||
Show All 33 Lines |