Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/uma.h
Context not available. | |||||
void uma_reclaim(void); | void uma_reclaim(void); | ||||
/* | /* | ||||
* Reclaims unused per-CPU cache memory from the specified zone | |||||
* | |||||
* Arguments: | |||||
* zone The zone for cleanup | |||||
* Returns: | |||||
* None | |||||
*/ | |||||
void uma_reclaim_zone_cache(uma_zone_t zone); | |||||
/* | |||||
* Sets the alignment mask to be used for all zones requesting cache | * Sets the alignment mask to be used for all zones requesting cache | ||||
* alignment. Should be called by MD boot code prior to starting VM/UMA. | * alignment. Should be called by MD boot code prior to starting VM/UMA. | ||||
* | * | ||||
Context not available. | |||||
int uma_zone_get_cur(uma_zone_t zone); | int uma_zone_get_cur(uma_zone_t zone); | ||||
/* | /* | ||||
* Obtains the approximate current size of items free in a zone | |||||
* | |||||
* Arguments: | |||||
* zone The zone to obtain the current free size from | |||||
* | |||||
* Return: | |||||
* int The approximate current size of items free in a zone | |||||
*/ | |||||
size_t uma_zone_get_free_size(uma_zone_t zone); | |||||
/* | |||||
* The following two routines (uma_zone_set_init/fini) | * The following two routines (uma_zone_set_init/fini) | ||||
* are used to set the backend init/fini pair which acts on an | * are used to set the backend init/fini pair which acts on an | ||||
* object as it becomes allocated and is placed in a slab within | * object as it becomes allocated and is placed in a slab within | ||||
Context not available. |