git: sys/kern: Add USCHED_GET_CPUMASK for usched_set(2)

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sat Jul 16 05:14:40 PDT 2016


commit a3894d77992aebef1caea78feca25f9c68052149
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sat Jul 16 10:49:15 2016 +0900

    sys/kern: Add USCHED_GET_CPUMASK for usched_set(2)
    
    Add a new usched_set(2) command USCHED_GET_CPUMASK which simply
    copies the cpumask of lwp to a pointer specified by userspace.
    
    It's same as USCHED_GET_CPU except that USCHED_GET_CPU copies
    the cpu id of lwp to userspace.
    
    Many of the other kernels including Linux and FreeBSD have this
    functionality via kernel specific syscalls, and not having it makes
    some userspace programs difficult to port to DragonFly or support
    the same feature sets that are available on other platforms.

Summary of changes:
 lib/libc/sys/usched_set.2 | 9 +++++++--
 sys/kern/kern_usched.c    | 8 ++++++++
 sys/sys/usched.h          | 1 +
 3 files changed, 16 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a3894d77992aebef1caea78feca25f9c68052149


-- 
DragonFly BSD source repository



More information about the Commits mailing list