Allow sizeof(cpuset_t) to be queried in capability mode.
This allows functions that retrieve and inspect pthread_attr_t objects to work correctly: querying the cpuset_t size is part of querying CPU affinity information, which is part of creating a complete pthread_attr_t. Approved by: rwatson (mentor) Reviewed by: pjd Sponsored by: NSERC
This commit is contained in:
parent
10ed60b0b1
commit
1288a9c619
@ -113,7 +113,7 @@ static struct unrhdr *cpuset_unr;
|
||||
static struct cpuset *cpuset_zero, *cpuset_default;
|
||||
|
||||
/* Return the size of cpuset_t at the kernel level */
|
||||
SYSCTL_INT(_kern_sched, OID_AUTO, cpusetsize, CTLFLAG_RD,
|
||||
SYSCTL_INT(_kern_sched, OID_AUTO, cpusetsize, CTLFLAG_RD | CTLFLAG_CAPRD,
|
||||
SYSCTL_NULL_INT_PTR, sizeof(cpuset_t), "sizeof(cpuset_t)");
|
||||
|
||||
cpuset_t *cpuset_root;
|
||||
|
Loading…
x
Reference in New Issue
Block a user