Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F133306429
D47556.id146388.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1002 B
Referenced Files
None
Subscribers
None
D47556.id146388.diff
View Options
Index: lib/libsys/sched_getcpu.2
===================================================================
--- /dev/null
+++ lib/libsys/sched_getcpu.2
@@ -0,0 +1,38 @@
+.\" SPDX-License-Identifier: BSD-2-Clause
+.\"
+.\" Copyright (c) 2024 The FreeBSD Foundation
+.\"
+.\" This documentation was written by Ed Maste <emaste@FreeBSD.org>
+.\" under sponsorship from the FreeBSD Foundation.
+.\"
+.Dd November 12, 2024
+.Dt SCHED_GETCPU 2
+.Os
+.Sh NAME
+.Nm sched_getcpu
+.Nd get current CPU
+.Sh LIBRARY
+.Lb libc
+.Sh SYNOPSIS
+.In sched.h
+.Ft int
+.Fn sched_getcpu void
+.Sh DESCRIPTION
+The
+.Fn sched_getcpu
+function or system call returns the current CPU on which the calling thread is
+running.
+.Sh RETURN VALUES
+.Fn sched_getcpu
+returns the 0-based index of the current CPU.
+.\" .Sh SEE ALSO
+.Sh STANDARDS
+The
+.Nm
+system call originated in Linux.
+This implementation aims to be source-compatible with the Linux implementation.
+.Sh HISTORY
+The
+.Nm
+function was introduced in
+.Fx 13.1 .
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 25, 7:47 PM (1 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24186953
Default Alt Text
D47556.id146388.diff (1002 B)
Attached To
Mode
D47556: sched_getcpu: add man page
Attached
Detach File
Event Timeline
Log In to Comment