Re: [rfc 2/2] docs: procfs -- Document timerfd output

From: Andrey Wagin
Date: Mon Mar 31 2014 - 14:31:19 EST


2014-03-31 21:54 GMT+04:00 Cyrill Gorcunov <gorcunov@xxxxxxxxxx>:
> CC: Shawn Landden <shawn@xxxxxxxxxxxxxxx>
> CC: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> CC: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> CC: Andrey Vagin <avagin@xxxxxxxxxx>
> CC: Pavel Emelyanov <xemul@xxxxxxxxxxxxx>
> Signed-off-by: Cyrill Gorcunov <gorcunov@xxxxxxxxxx>
> ---
> Documentation/filesystems/proc.txt | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> Index: linux-2.6.git/Documentation/filesystems/proc.txt
> ===================================================================
> --- linux-2.6.git.orig/Documentation/filesystems/proc.txt
> +++ linux-2.6.git/Documentation/filesystems/proc.txt
> @@ -1741,6 +1741,15 @@ pair provide additional information part
> While the first three lines are mandatory and always printed, the rest is
> optional and may be omitted if no marks created yet.
>
> + Timerfd files
> + ~~~~~~~~~~~~~
> + pos: 0
> + flags: 02
> + mnt_id: 9
> + clockid: 0 ticks: 0

I would prefer to print "tick" on a separate line.

And we can print the current setting of the timer here. It can be
useful not only for CRIU but for other users too.

it_value: (5, 149234)
it_interval: (10, 0)

> +
> + where 'clockid' is the clock type and 'ticks' is the number of the timer expirations
> + that have occurred [see timerfd_create(2) for details].
>
> ------------------------------------------------------------------------------
> Configuring procfs
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/