Page MenuHomeFreeBSD

libthr: Fix pthread_[g|s]etaffinity_np manual.
ClosedPublic

Authored by dchagin on Jan 18 2023, 6:59 PM.
Tags
None
Referenced Files
F142355222: D38111.id116001.diff
Sun, Jan 18, 11:46 PM
F142350873: D38111.id115270.diff
Sun, Jan 18, 10:16 PM
Unknown Object (File)
Sun, Jan 18, 2:52 PM
Unknown Object (File)
Dec 20 2025, 3:30 AM
Unknown Object (File)
Dec 10 2025, 9:38 AM
Unknown Object (File)
Nov 21 2025, 10:45 AM
Unknown Object (File)
Nov 20 2025, 3:34 PM
Unknown Object (File)
Nov 7 2025, 12:43 AM
Subscribers

Details

Summary

Since f35093f8 Linux semantics of a threads affinity functions is in use:

Minimum cpuset_t size that the Linux kernel permits in case of getaffinity()
is the maximum CPU id, present in the system / NBBY, the maximum size is not
limited. For setaffinity(), Linux does not limit the size of the user-provided
cpuset_t, internally using only the meaningful part of the set, where the upper
bound is the maximum CPU id, present in the system, no larger than the size of
the kernel cpuset_t.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 49156
Build 46045: arc lint + arc unit