Home
last modified time | relevance | path

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

/xnu-12377.41.6/bsd/sys/
H A Dmcache.h126 } mcache_obj_t; typedef
160 typedef unsigned int (*mcache_allocfn_t)(void *, mcache_obj_t ***,
162 typedef void (*mcache_freefn_t)(void *, mcache_obj_t *, boolean_t);
163 typedef void (*mcache_auditfn_t)(void *, mcache_obj_t *, boolean_t);
164 typedef void (*mcache_logfn_t)(u_int32_t, mcache_obj_t *, boolean_t);
266 __private_extern__ unsigned int mcache_alloc_ext(mcache_t *, mcache_obj_t **,
268 __private_extern__ void mcache_free_ext(mcache_t *, mcache_obj_t *);
H A Dmbuf.h1893 mcache_obj_t *mtbl_cobjlist; /* composite objects freelist */
/xnu-12377.41.6/bsd/kern/
H A Duipc_mbuf_mcache.c539 mcache_obj_t *element; /* the alloc'ed element, NULL if unused */
704 static mcache_obj_t *slab_alloc(mbuf_class_t, int);
705 static void slab_free(mbuf_class_t, mcache_obj_t *);
706 static unsigned int mbuf_slab_alloc(void *, mcache_obj_t ***,
708 static void mbuf_slab_free(void *, mcache_obj_t *, int);
709 static void mbuf_slab_audit(void *, mcache_obj_t *, boolean_t);
711 static unsigned int cslab_alloc(mbuf_class_t, mcache_obj_t ***,
713 static unsigned int cslab_free(mbuf_class_t, mcache_obj_t *, int);
714 static unsigned int mbuf_cslab_alloc(void *, mcache_obj_t ***,
716 static void mbuf_cslab_free(void *, mcache_obj_t *, int);
[all …]
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 …]