[PATCH 2/4] prctl.2: document PR_GET_TIMESLACK and PR_SET_TIMESLACK

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 man2/prctl.2 |   23 ++++++++++++++++++++---
 1 file changed, 20 insertions(+), 3 deletions(-)

diff --git a/man2/prctl.2 b/man2/prctl.2
index 5c829e7..e3b701e 100644
--- a/man2/prctl.2
+++ b/man2/prctl.2
@@ -44,9 +44,7 @@
 .\" 2012-08-03 Shawn Landden, Document PR_SET_NO_NEW_PRIVS, PR_GET_NO_NEW_PRIVS,
 .\"       SECCOMP_MODE_STRICT, SECCOMP_MODE_FILTER
 .\"       (thx Andy Lutomirski <luto@xxxxxxxxxxxxxx> 259e5e6c)
-.\"
-.\" FIXME: Document PR_SET_TIMERSLACK and PR_GET_TIMERSLACK (new in 2.6.28)
-.\"		commit 6976675d94042fbd446231d1bd8b7de71a980ada
+.\"       PR_SET_TIMERSLACK, PR_GET_TIMESLACK
 .\"
 .TH PRCTL 2 2012-08-03 "Linux" "Linux Programmer's Manual"
 .SH NAME
@@ -419,6 +417,25 @@ for information on versions and architectures)
 Return unaligned access control bits, in the location pointed to by
 .IR "(int\ *) arg2" .
 .TP
+.BR PR_SET_TIMERSLACK " (since Linux 2.6.27)"
+.\" see commit 6976675d94042fbd446231d1bd8b7de71a980ada
+Controls the "rounding" that is used by
+.BR select (2)
+and
+.BR poll (2)
+and friends.
+If
+.I arg2
+is a positive integer, set timer slack to
+.IR arg2 .
+(in nanoseconds) Otherwise reset to timer stack to its value when the process
+was created. (default 50 usec) This setting inherits on
+.BR fork (2) .
+Setting this higher may reduce power consumption.
+.TP
+.BR PR_GET_TIMESLACK " (since Linux 2.6.27)"
+Returns the current timer slack.
+.TP
 .BR PR_MCE_KILL " (since Linux 2.6.32)"
 Set the machine check memory corruption kill policy for the current thread.
 If
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux