Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/uma_core.c
Show First 20 Lines • Show All 3,165 Lines • ▼ Show 20 Lines | |||||
void | void | ||||
uma_zfree_pcpu_arg(uma_zone_t zone, void *pcpu_item, void *udata) | uma_zfree_pcpu_arg(uma_zone_t zone, void *pcpu_item, void *udata) | ||||
{ | { | ||||
void *item; | void *item; | ||||
#ifdef SMP | #ifdef SMP | ||||
MPASS(zone->uz_flags & UMA_ZONE_PCPU); | MPASS(zone->uz_flags & UMA_ZONE_PCPU); | ||||
#endif | #endif | ||||
/* uma_zfree_pcu_*(..., NULL) does nothing, to match free(9). */ | |||||
if (pcpu_item == NULL) | |||||
return; | |||||
item = zpcpu_offset_to_base(pcpu_item); | item = zpcpu_offset_to_base(pcpu_item); | ||||
uma_zfree_arg(zone, item, udata); | uma_zfree_arg(zone, item, udata); | ||||
} | } | ||||
static inline void * | static inline void * | ||||
item_ctor(uma_zone_t zone, int uz_flags, int size, void *udata, int flags, | item_ctor(uma_zone_t zone, int uz_flags, int size, void *udata, int flags, | ||||
void *item) | void *item) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 2,382 Lines • Show Last 20 Lines |