Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/vmem.h
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | |||||
* arg - Backing store argument | * arg - Backing store argument | ||||
* import_quantum - Size to import from backing store | * import_quantum - Size to import from backing store | ||||
*/ | */ | ||||
void vmem_set_import(vmem_t *vm, vmem_import_t *importfn, | void vmem_set_import(vmem_t *vm, vmem_import_t *importfn, | ||||
vmem_release_t *releasefn, void *arg, vmem_size_t import_quantum); | vmem_release_t *releasefn, void *arg, vmem_size_t import_quantum); | ||||
/* | /* | ||||
* Set a limit on the total size of a vmem. | |||||
*/ | |||||
void vmem_set_limit(vmem_t *vm, vmem_size_t limit); | |||||
/* | |||||
* Set a callback for reclaiming memory when space is exhausted: | * Set a callback for reclaiming memory when space is exhausted: | ||||
*/ | */ | ||||
void vmem_set_reclaim(vmem_t *vm, vmem_reclaim_t *reclaimfn); | void vmem_set_reclaim(vmem_t *vm, vmem_reclaim_t *reclaimfn); | ||||
/* | /* | ||||
* Allocate and free linear regions from a vmem. Must specify | * Allocate and free linear regions from a vmem. Must specify | ||||
* BESTFIT or FIRSTFIT. Free is non-blocking. These routines | * BESTFIT or FIRSTFIT. Free is non-blocking. These routines | ||||
* respect the quantum caches. | * respect the quantum caches. | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |