Page MenuHomeFreeBSD

sched_getcpu: add man page
ClosedPublic

Authored by emaste on Nov 13 2024, 10:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jan 20, 10:28 AM
Unknown Object (File)
Mon, Jan 6, 6:51 AM
Unknown Object (File)
Sun, Jan 5, 7:55 AM
Unknown Object (File)
Sun, Jan 5, 5:58 AM
Unknown Object (File)
Sun, Jan 5, 2:34 AM
Unknown Object (File)
Sat, Jan 4, 11:41 PM
Unknown Object (File)
Dec 27 2024, 11:27 AM
Unknown Object (File)
Dec 2 2024, 8:59 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste created this revision.
emaste added a reviewer: kib.

(and sched_getcpu.3 to be added in lib/libsys/Makefile.sys)

lib/libsys/sched_getcpu.3
24

The result is invalid at a moment it is returned, unless the thread is pinned to specific cpu.

27

Perhaps note that the index is same as used by cpuset/affinity calls, like cpuset, cpuset_getaffinity, pthread_getaffinity_np.

29

Then this section becomes useful.

If you move the page to section 3, it should be in lib/libc/gen.

This revision is now accepted and ready to land.Nov 13 2024, 11:50 PM

If you move the page to section 3, it should be in lib/libc/gen.

I wondered about that, but the implementation is in libsys and there are a small number of section 3 pages in libsys, like getpagesize.3, so should be the same for sched_getcpu, no?

If you move the page to section 3, it should be in lib/libc/gen.

I wondered about that, but the implementation is in libsys and there are a small number of section 3 pages in libsys, like getpagesize.3, so should be the same for sched_getcpu, no?

Ok

This revision was automatically updated to reflect the committed changes.