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
F102452106: D46607.diff
Tue, Nov 12, 11:43 AM
Unknown Object (File)
Wed, Nov 6, 9:57 PM
Unknown Object (File)
Tue, Nov 5, 10:32 AM
Unknown Object (File)
Sat, Oct 19, 1:51 PM
Unknown Object (File)
Sat, Oct 19, 6:56 AM
Unknown Object (File)
Sat, Oct 19, 6:56 AM
Unknown Object (File)
Sat, Oct 19, 6:35 AM
Unknown Object (File)
Thu, Oct 17, 10:06 AM
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