Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/uma.h
Show First 20 Lines • Show All 295 Lines • ▼ Show 20 Lines | |||||
#define UMA_ALIGN_SHORT (sizeof(short) - 1) /* "" short */ | #define UMA_ALIGN_SHORT (sizeof(short) - 1) /* "" short */ | ||||
#define UMA_ALIGN_CHAR (sizeof(char) - 1) /* "" char */ | #define UMA_ALIGN_CHAR (sizeof(char) - 1) /* "" char */ | ||||
#define UMA_ALIGN_CACHE (0 - 1) /* Cache line size align */ | #define UMA_ALIGN_CACHE (0 - 1) /* Cache line size align */ | ||||
#define UMA_ALIGNOF(type) (_Alignof(type) - 1) /* Alignment fit for 'type' */ | #define UMA_ALIGNOF(type) (_Alignof(type) - 1) /* Alignment fit for 'type' */ | ||||
#define UMA_ANYDOMAIN -1 /* Special value for domain search. */ | #define UMA_ANYDOMAIN -1 /* Special value for domain search. */ | ||||
/* | /* | ||||
* Returns domain backing the passed pointer. | |||||
mjg: This will be separate.
Trying to re-create the needed functionality locally resulted in a lot… | |||||
*/ | |||||
#ifdef NUMA | |||||
int uma_item_domain(void *item); | |||||
#else | |||||
static inline int | |||||
uma_item_domain(void *item) | |||||
{ | |||||
return (0); | |||||
} | |||||
#endif | |||||
/* | |||||
* Destroys an empty uma zone. If the zone is not empty uma complains loudly. | * Destroys an empty uma zone. If the zone is not empty uma complains loudly. | ||||
* | * | ||||
* Arguments: | * Arguments: | ||||
* zone The zone we want to destroy. | * zone The zone we want to destroy. | ||||
* | * | ||||
*/ | */ | ||||
void uma_zdestroy(uma_zone_t zone); | void uma_zdestroy(uma_zone_t zone); | ||||
▲ Show 20 Lines • Show All 424 Lines • Show Last 20 Lines |
This will be separate.
Trying to re-create the needed functionality locally resulted in a lot of headers which needed to be pulled in.