Home
last modified time | relevance | path

Searched refs:mcache_obj_t (Results 1 – 3 of 3) sorted by relevance

/xnu-11215.81.4/bsd/sys/
H A Dmcache.h131 } mcache_obj_t; typedef
165 typedef unsigned int (*mcache_allocfn_t)(void *, mcache_obj_t ***,
167 typedef void (*mcache_freefn_t)(void *, mcache_obj_t *, boolean_t);
168 typedef void (*mcache_auditfn_t)(void *, mcache_obj_t *, boolean_t);
169 typedef void (*mcache_logfn_t)(u_int32_t, mcache_obj_t *, boolean_t);
271 __private_extern__ unsigned int mcache_alloc_ext(mcache_t *, mcache_obj_t **,
273 __private_extern__ void mcache_free_ext(mcache_t *, mcache_obj_t *);
/xnu-11215.81.4/bsd/kern/
H A Dmcache.c141 static unsigned int mcache_slab_alloc(void *, mcache_obj_t ***,
143 static void mcache_slab_free(void *, mcache_obj_t *, boolean_t);
144 static void mcache_slab_audit(void *, mcache_obj_t *, boolean_t);
423 mcache_alloc_ext(mcache_t *cp, mcache_obj_t **list, unsigned int num, int wait) in mcache_alloc_ext()
426 mcache_obj_t **top = &(*list); in mcache_alloc_ext()
453 mcache_obj_t *tail; in mcache_alloc_ext()
585 mcache_obj_t **o = top; in mcache_alloc_ext()
622 mcache_obj_t *buf; in mcache_alloc()
717 ((mcache_obj_t *)buf)->obj_next = NULL; in mcache_free()
718 mcache_free_ext(cp, (mcache_obj_t *)buf); in mcache_free()
[all …]
H A Duipc_mbuf.c713 mcache_obj_t *element; /* the alloc'ed element, NULL if unused */
804 mcache_obj_t *mtbl_cobjlist; /* composite objects freelist */
962 static mcache_obj_t *slab_alloc(mbuf_class_t, int);
963 static void slab_free(mbuf_class_t, mcache_obj_t *);
964 static unsigned int mbuf_slab_alloc(void *, mcache_obj_t ***,
966 static void mbuf_slab_free(void *, mcache_obj_t *, int);
967 static void mbuf_slab_audit(void *, mcache_obj_t *, boolean_t);
969 static unsigned int cslab_alloc(mbuf_class_t, mcache_obj_t ***,
971 static unsigned int cslab_free(mbuf_class_t, mcache_obj_t *, int);
972 static unsigned int mbuf_cslab_alloc(void *, mcache_obj_t ***,
[all …]