From 50f73920c5db276d8073a1746ac01ceadb27dc19 Mon Sep 17 00:00:00 2001 From: Masatake YAMATO Date: Sat, 3 Jun 2023 09:36:57 +0900 Subject: [PATCH] lsfd.1.adoc: write about timerfd Signed-off-by: Masatake YAMATO --- misc-utils/lsfd.1.adoc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/misc-utils/lsfd.1.adoc b/misc-utils/lsfd.1.adoc index 67e2b27ba1..cbffd750d2 100644 --- a/misc-utils/lsfd.1.adoc +++ b/misc-utils/lsfd.1.adoc @@ -263,6 +263,9 @@ TCP::: TCPv6::: state=_SOCK.STATE_[ laddr=_TCP.LADDR_ [ raddr=_TCP.RADDR_]] + +timerfd::: +clockid=_TIMERFD.CLOCKID_[ remaining=_TIMERFD.REMAINING_ [ interval=_TIMERFD.INTERVAL_]] ++ UDP::: UDPv6::: state=_SOCK.STATE_[ laddr=_UDP.LADDR_ [ raddr=_UDP.RADDR_]] @@ -396,6 +399,15 @@ Remote TCP port. TID <``number``>:: Thread ID of the process opening the file. +TIMERFD.CLOCKID <``string``>:: +Clockid. + +TIMERFD.INTERVAL <``number``>:: +Interval. + +TIMERFD.REMAINING <``number``>:: +Remaining time. + TYPE <``string``>:: Cooked version of STTYPE. It is same as STTYPE with exceptions. For SOCK, print the value for SOCK.PROTONAME. @@ -630,6 +642,11 @@ Hide files associated to kernel threads: :: # lsfd -Q '!KTHREAD' .... +List timerfd files expired within 0.5 seconds: :: +.... +# lsfd -Q '(TIMERFD.remaining < 0.5) and (TIMERFD.remaining > 0.0)' +.... + == COUNTER EXAMPLES Report the numbers of netlink socket descriptors and unix socket descriptors: :: -- 2.47.2