Page MenuHomeFreeBSD

sched_getcpu: add man page
ClosedPublic

Authored by emaste on Wed, Nov 13, 10:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 19, 2:45 PM
Unknown Object (File)
Tue, Nov 19, 2:01 PM
Unknown Object (File)
Mon, Nov 18, 3:12 AM
Unknown Object (File)
Mon, Nov 18, 1:25 AM
Unknown Object (File)
Sun, Nov 17, 10:14 AM
Unknown Object (File)
Thu, Nov 14, 9:02 PM
Unknown Object (File)
Thu, Nov 14, 12:32 AM
Subscribers

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

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
23 ↗(On Diff #146389)

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

26 ↗(On Diff #146389)

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

28 ↗(On Diff #146389)

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.Wed, Nov 13, 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.