Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/uma_int.h
Show First 20 Lines • Show All 220 Lines • ▼ Show 20 Lines | |||||
* TODO: Optimize for cache line size | * TODO: Optimize for cache line size | ||||
* | * | ||||
*/ | */ | ||||
struct uma_keg { | struct uma_keg { | ||||
struct mtx uk_lock; /* Lock for the keg */ | struct mtx uk_lock; /* Lock for the keg */ | ||||
struct uma_hash uk_hash; | struct uma_hash uk_hash; | ||||
LIST_HEAD(,uma_zone) uk_zones; /* Keg's zones */ | LIST_HEAD(,uma_zone) uk_zones; /* Keg's zones */ | ||||
uint32_t uk_cursor; /* Domain alloc cursor. */ | |||||
uint32_t uk_align; /* Alignment mask */ | uint32_t uk_align; /* Alignment mask */ | ||||
uint32_t uk_pages; /* Total page count */ | uint32_t uk_pages; /* Total page count */ | ||||
uint32_t uk_free; /* Count of items free in slabs */ | uint32_t uk_free; /* Count of items free in slabs */ | ||||
uint32_t uk_reserve; /* Number of reserved items. */ | uint32_t uk_reserve; /* Number of reserved items. */ | ||||
uint32_t uk_size; /* Requested size of each item */ | uint32_t uk_size; /* Requested size of each item */ | ||||
uint32_t uk_rsize; /* Real size of each item */ | uint32_t uk_rsize; /* Real size of each item */ | ||||
uint32_t uk_maxpages; /* Maximum number of pages to alloc */ | uint32_t uk_maxpages; /* Maximum number of pages to alloc */ | ||||
▲ Show 20 Lines • Show All 251 Lines • Show Last 20 Lines |