Page MenuHomeFreeBSD

libutil: Move cpuset(1) domainset parsing code into libutil
Needs ReviewPublic

Authored by bnovkov on Sep 8 2024, 5:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 24 2024, 4:32 AM
Unknown Object (File)
Nov 23 2024, 2:31 PM
Unknown Object (File)
Nov 22 2024, 4:19 AM
Unknown Object (File)
Nov 21 2024, 7:43 AM
Unknown Object (File)
Nov 12 2024, 11:43 AM
Unknown Object (File)
Nov 6 2024, 9:57 PM
Unknown Object (File)
Nov 5 2024, 10:32 AM
Unknown Object (File)
Oct 19 2024, 1:51 PM
Subscribers

Details

Reviewers
olce
Group Reviewers
manpages
Summary

cpuset(1) implements a domainset(9) policy parser that is used to translate a <policy>:<domain_list> string into a domainset_t mask and a valid domainset policy. This patch moves the domainset parsing code into a new cpuset.c function - domainset_parselist.

The existing cpuset.c code was refactored into a generalized list parsing function which is now used to parse both CPU sets and domain sets. This is the same approach used in cpuset(1).

Test Plan

All cpuset.c test cases pass without errors.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped