diff options
author | brooks <brooks@FreeBSD.org> | 2008-07-25 19:58:14 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2008-07-25 19:58:14 +0000 |
commit | 8330af909ca941f7f0083761fdafe90a332e74de (patch) | |
tree | 62fd98a560aa70ad64312a864e5064cbfbef32da /lib/libutil/login_class.3 | |
parent | fb5f9ab862007c3c81c74a45467be20efed0b373 (diff) | |
download | FreeBSD-src-8330af909ca941f7f0083761fdafe90a332e74de.zip FreeBSD-src-8330af909ca941f7f0083761fdafe90a332e74de.tar.gz |
Add support for a new login capability, cpumask which allows login
sessions to be pinned to cpus by login class.
Diffstat (limited to 'lib/libutil/login_class.3')
-rw-r--r-- | lib/libutil/login_class.3 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/libutil/login_class.3 b/lib/libutil/login_class.3 index ca5b2ce..c91f9a9 100644 --- a/lib/libutil/login_class.3 +++ b/lib/libutil/login_class.3 @@ -155,6 +155,18 @@ capability "setenv=var1 val1,var2 val2..,varN valN". Set the MAC label for the current process to the label specified in system login class database. .Pp +.It LOGIN_SETCPUMASK +Create a new +.Xr cpuset 2 +and set the cpu affinity to the specified mask. +The string may contain a comma separated list of numbers and/or number +ranges as handled by the +.Xr cpuset 1 +utility or the case-insensitive string +.Ql default . +If the string is +.Ql default +no action will be taken. .It LOGIN_SETALL Enables all of the above settings. .El @@ -186,6 +198,8 @@ or resources, a message is reported to .Xr syslog 3 , with LOG_ERR priority and directed to the currently active facility. .Sh SEE ALSO +.Xr cpuset 1 , +.Xr cpuset 2 , .Xr setgid 2 , .Xr setlogin 2 , .Xr setuid 2 , |