mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
pure getcpu() example
This commit is contained in:
@@ -19006,6 +19006,7 @@ The example in `man futex` is also a must.
|
||||
Examples:
|
||||
|
||||
* link:userland/linux/sched_getcpu.c[]
|
||||
* link:userland/linux/getcpu.c[]: a wrapper close the the syscall that also returns the current NUMA node
|
||||
* link:userland/linux/sched_getcpu_barrier.c[]: this uses a barrier to ensure that gem5 will run each thread on one separate CPU
|
||||
|
||||
Returns the CPU that the process/thread is currently running on:
|
||||
|
||||
Reference in New Issue
Block a user