Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/domainset.h
| Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | |||||
| void domainset_zero(void); | void domainset_zero(void); | ||||
| /* | /* | ||||
| * Add a domainset to the system based on a key initializing policy, prefer, | * Add a domainset to the system based on a key initializing policy, prefer, | ||||
| * and mask. Do not create and directly use domainset structures. The | * and mask. Do not create and directly use domainset structures. The | ||||
| * returned value will not match the key pointer. | * returned value will not match the key pointer. | ||||
| */ | */ | ||||
| struct domainset *domainset_create(const struct domainset *); | struct domainset *domainset_create(const struct domainset *); | ||||
markj: It'd be nice to have a comment above this function, like the others do. | |||||
| /* | |||||
| * Remove empty domains from a given domainset. | |||||
| * Returns 'false' if the domainset consists entirely of empty domains. | |||||
| */ | |||||
| bool domainset_empty_vm(struct domainset *domain); | |||||
| /* | |||||
| * Validate and populate a domainset structure according to the specified | |||||
| * policy and mask. | |||||
| */ | |||||
| int domainset_populate(struct domainset *domain, const domainset_t *mask, int policy, | |||||
| size_t mask_size); | |||||
| #ifdef _SYS_SYSCTL_H_ | #ifdef _SYS_SYSCTL_H_ | ||||
| int sysctl_handle_domainset(SYSCTL_HANDLER_ARGS); | int sysctl_handle_domainset(SYSCTL_HANDLER_ARGS); | ||||
| #endif | #endif | ||||
| #else | #else | ||||
| __BEGIN_DECLS | __BEGIN_DECLS | ||||
| int cpuset_getdomain(cpulevel_t, cpuwhich_t, id_t, size_t, domainset_t *, | int cpuset_getdomain(cpulevel_t, cpuwhich_t, id_t, size_t, domainset_t *, | ||||
| int *); | int *); | ||||
| int cpuset_setdomain(cpulevel_t, cpuwhich_t, id_t, size_t, | int cpuset_setdomain(cpulevel_t, cpuwhich_t, id_t, size_t, | ||||
| const domainset_t *, int); | const domainset_t *, int); | ||||
| __END_DECLS | __END_DECLS | ||||
| #endif | #endif | ||||
| #endif /* !_SYS_DOMAINSET_H_ */ | #endif /* !_SYS_DOMAINSET_H_ */ | ||||
It'd be nice to have a comment above this function, like the others do.