Changeset View
Changeset View
Standalone View
Standalone View
head/sys/vm/uma_int.h
Show First 20 Lines • Show All 419 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* The following two functions may be defined by architecture specific code | * The following two functions may be defined by architecture specific code | ||||
* if they can provide more efficient allocation functions. This is useful | * if they can provide more efficient allocation functions. This is useful | ||||
* for using direct mapped addresses. | * for using direct mapped addresses. | ||||
*/ | */ | ||||
void *uma_small_alloc(uma_zone_t zone, vm_size_t bytes, uint8_t *pflag, | void *uma_small_alloc(uma_zone_t zone, vm_size_t bytes, uint8_t *pflag, | ||||
int wait); | int wait); | ||||
void uma_small_free(void *mem, vm_size_t size, uint8_t flags); | void uma_small_free(void *mem, vm_size_t size, uint8_t flags); | ||||
/* Set a global soft limit on UMA managed memory. */ | |||||
void uma_set_limit(unsigned long limit); | |||||
unsigned long uma_limit(void); | |||||
/* Return the amount of memory managed by UMA. */ | |||||
unsigned long uma_size(void); | |||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
#endif /* VM_UMA_INT_H */ | #endif /* VM_UMA_INT_H */ |