Changeset View
Changeset View
Standalone View
Standalone View
sys/vm/uma_int.h
Show First 20 Lines • Show All 244 Lines • ▼ Show 20 Lines | #endif | ||||
uint16_t us_freecount; /* How many are free? */ | uint16_t us_freecount; /* How many are free? */ | ||||
uint8_t us_flags; /* Page flags see uma.h */ | uint8_t us_flags; /* Page flags see uma.h */ | ||||
uint8_t us_pad; /* Pad to 32bits, unused. */ | uint8_t us_pad; /* Pad to 32bits, unused. */ | ||||
}; | }; | ||||
#define us_link us_type._us_link | #define us_link us_type._us_link | ||||
#define us_size us_type._us_size | #define us_size us_type._us_size | ||||
/* | |||||
* The slab structure for UMA_ZONE_REFCNT zones for whose items we | |||||
* maintain reference counters in the slab for. | |||||
*/ | |||||
struct uma_slab_refcnt { | |||||
struct uma_slab us_head; /* slab header data */ | |||||
uint32_t us_refcnt[0]; /* Actually larger. */ | |||||
}; | |||||
typedef struct uma_slab * uma_slab_t; | typedef struct uma_slab * uma_slab_t; | ||||
typedef struct uma_slab_refcnt * uma_slabrefcnt_t; | |||||
typedef uma_slab_t (*uma_slaballoc)(uma_zone_t, uma_keg_t, int); | typedef uma_slab_t (*uma_slaballoc)(uma_zone_t, uma_keg_t, int); | ||||
struct uma_klink { | struct uma_klink { | ||||
LIST_ENTRY(uma_klink) kl_link; | LIST_ENTRY(uma_klink) kl_link; | ||||
uma_keg_t kl_keg; | uma_keg_t kl_keg; | ||||
}; | }; | ||||
typedef struct uma_klink *uma_klink_t; | typedef struct uma_klink *uma_klink_t; | ||||
▲ Show 20 Lines • Show All 165 Lines • Show Last 20 Lines |