This patch splits the validation and struct domainset-filling logic from kern_cpuset_setdomain into a separate function - domainset_populate.
This function's main use is to validate user-provided domainset(9) policies and populate a struct domainset before handing it off to domainset_create. No functional change intended.
Details
Details
- Reviewers
markj - Group Reviewers
manpages - Commits
- rGcf571e08503d: domainset(9): Split domainset validation logic into a separate function
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
| sys/kern/kern_cpuset.c | ||
|---|---|---|
| 2412–2413 | It can, done! | |
| 2498 | Hm right, it's a bit unclear where the cutoff point should be. I guess it'd be useful to give other consumers of this interface a chance to return an error when faced with an empty domainset, the only issue with this is that it would require making domainset_vm_empty (and perhaps domainset_copy) public functions. Does that sound reasonable? | |
| share/man/man9/domainset.9 | ||
|---|---|---|
| 29 | Right? | |
| sys/sys/domainset.h | ||
|---|---|---|
| 116 | It'd be nice to have a comment above this function, like the others do. | |