aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@openvz.org>2014-07-16 01:54:55 +0400
committerMichael Kerrisk <mtk.manpages@gmail.com>2015-04-18 13:20:39 +0200
commit5a3eb9cd35b0ee9e2ae5ef741a79d03f4eb70c3f (patch)
treef7b03a073edec084a7492db827f24528223b8e17
parent58d375dd8a15c2a708d6b7db9039e8248559a4d8 (diff)
downloadman-pages-5a3eb9cd35b0ee9e2ae5ef741a79d03f4eb70c3f.tar.gz
timerfd_create.2: Document TFD_IOC_SET_TICKS ioctl() operation
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/timerfd_create.214
1 files changed, 14 insertions, 0 deletions
diff --git a/man2/timerfd_create.2 b/man2/timerfd_create.2
index 1b1da62444..371591f64f 100644
--- a/man2/timerfd_create.2
+++ b/man2/timerfd_create.2
@@ -267,6 +267,20 @@ multiplexing APIs:
and
.BR epoll (7).
.TP
+.BR ioctl "(2)"
+The following commands are supported:
+.B TFD_IOC_SET_TICKS
+to adjust the number of the timer expirations that have occurred.
+It take a pointer to nonzero 8-byte integer
+.RI ( uint64_t *)
+containing the new number of expirations.
+Once the number is set any waiter on the timer is woken up.
+The only purpose of this command is to restore the expirations
+in a sake of checkpoint/restore procedure.
+It requires the kernel to be built with
+.BR CONFIG_CHECKPOINT_RESTORE
+support.
+.TP
.BR close (2)
When the file descriptor is no longer required it should be closed.
When all file descriptors associated with the same timer object