Changeset View
Changeset View
Standalone View
Standalone View
head/sys/vm/uma.h
Show First 20 Lines • Show All 381 Lines • ▼ Show 20 Lines | |||||
/* Use with PCPU zones. */ | /* Use with PCPU zones. */ | ||||
void uma_zfree_pcpu_arg(uma_zone_t zone, void *item, void *arg); | void uma_zfree_pcpu_arg(uma_zone_t zone, void *item, void *arg); | ||||
/* Use with SMR zones. */ | /* Use with SMR zones. */ | ||||
void uma_zfree_smr(uma_zone_t zone, void *item); | void uma_zfree_smr(uma_zone_t zone, void *item); | ||||
/* | /* | ||||
* Frees an item back to the specified zone's domain specific pool. | |||||
* | |||||
* Arguments: | |||||
* zone The zone the item was originally allocated out of. | |||||
* item The memory to be freed. | |||||
* arg Argument passed to the destructor | |||||
*/ | |||||
void uma_zfree_domain(uma_zone_t zone, void *item, void *arg); | |||||
/* | |||||
* Frees an item back to a zone without supplying an argument | * Frees an item back to a zone without supplying an argument | ||||
* | * | ||||
* This is just a wrapper for uma_zfree_arg for convenience. | * This is just a wrapper for uma_zfree_arg for convenience. | ||||
* | * | ||||
*/ | */ | ||||
static __inline void uma_zfree(uma_zone_t zone, void *item); | static __inline void uma_zfree(uma_zone_t zone, void *item); | ||||
static __inline void uma_zfree_pcpu(uma_zone_t zone, void *item); | static __inline void uma_zfree_pcpu(uma_zone_t zone, void *item); | ||||
▲ Show 20 Lines • Show All 336 Lines • Show Last 20 Lines |