Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/domainset.h
Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | struct domainset { | ||||
LIST_ENTRY(domainset) ds_link; | LIST_ENTRY(domainset) ds_link; | ||||
domainset_t ds_mask; /* allowed domains. */ | domainset_t ds_mask; /* allowed domains. */ | ||||
uint16_t ds_policy; /* Policy type. */ | uint16_t ds_policy; /* Policy type. */ | ||||
domainid_t ds_prefer; /* Preferred domain or -1. */ | domainid_t ds_prefer; /* Preferred domain or -1. */ | ||||
domainid_t ds_cnt; /* popcnt from above. */ | domainid_t ds_cnt; /* popcnt from above. */ | ||||
domainid_t ds_order[MAXMEMDOM]; /* nth domain table. */ | domainid_t ds_order[MAXMEMDOM]; /* nth domain table. */ | ||||
}; | }; | ||||
extern struct domainset domainset_prefer[MAXMEMDOM]; | extern struct domainset domainset_fixed[MAXMEMDOM], domainset_prefer[MAXMEMDOM]; | ||||
#define DOMAINSET_FIXED(domain) (&domainset_fixed[(domain)]) | |||||
#define DOMAINSET_PREF(domain) (&domainset_prefer[(domain)]) | #define DOMAINSET_PREF(domain) (&domainset_prefer[(domain)]) | ||||
extern struct domainset domainset_roundrobin; | extern struct domainset domainset_roundrobin; | ||||
#define DOMAINSET_RR() (&domainset_roundrobin) | #define DOMAINSET_RR() (&domainset_roundrobin) | ||||
void domainset_init(void); | void domainset_init(void); | ||||
void domainset_zero(void); | void domainset_zero(void); | ||||
/* | /* | ||||
Show All 19 Lines |