* [PATCH v4 1/4] proc_pid_fdinfo.5: Reduce indent for most of the page
@ 2024-11-01 21:18 Ian Rogers
2024-11-01 21:18 ` [PATCH v4 2/4] proc_pid_fdinfo.5: Make pid clearer in the name and 1st paragraph Ian Rogers
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Ian Rogers @ 2024-11-01 21:18 UTC (permalink / raw)
To: Alejandro Colomar, G . Branden Robinson
Cc: David Airlie, Simona Vetter, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, Jonathan Corbet, dri-devel, linux-doc,
linux-kernel, linux-man, Ian Rogers
When /proc/pid/fdinfo was part of proc.5 man page the indentation made
sense. As a standalone man page the indentation doesn't need to be so
far over to the right. Remove the initial tagged pragraph, move the
"since Linux 2.6.22" to a new history subsection.
Suggested-by: G. Branden Robinson <g.branden.robinson@gmail.com>
Signed-off-by: Ian Rogers <irogers@google.com>
---
v4. Move since to history from Alejandro Colomar's <alx@kernel.org> review
comment.
---
man/man5/proc_pid_fdinfo.5 | 51 +++++++++++++++++++-------------------
1 file changed, 25 insertions(+), 26 deletions(-)
diff --git a/man/man5/proc_pid_fdinfo.5 b/man/man5/proc_pid_fdinfo.5
index 1e23bbe02..ad739bd84 100644
--- a/man/man5/proc_pid_fdinfo.5
+++ b/man/man5/proc_pid_fdinfo.5
@@ -8,8 +8,6 @@
.SH NAME
/proc/pid/fdinfo/ \- information about file descriptors
.SH DESCRIPTION
-.TP
-.IR /proc/ pid /fdinfo/ " (since Linux 2.6.22)"
This is a subdirectory containing one entry for each file which the
process has open, named by its file descriptor.
The files in this directory are readable only by the owner of the process.
@@ -17,9 +15,9 @@ The contents of each file can be read to obtain information
about the corresponding file descriptor.
The content depends on the type of file referred to by the
corresponding file descriptor.
-.IP
+.P
For regular files and directories, we see something like:
-.IP
+.P
.in +4n
.EX
.RB "$" " cat /proc/12015/fdinfo/4"
@@ -28,7 +26,7 @@ flags: 01002002
mnt_id: 21
.EE
.in
-.IP
+.P
The fields are as follows:
.RS
.TP
@@ -51,7 +49,6 @@ this field incorrectly displayed the setting of
at the time the file was opened,
rather than the current setting of the close-on-exec flag.
.TP
-.I
.I mnt_id
This field, present since Linux 3.15,
.\" commit 49d063cb353265c3af701bab215ac438ca7df36d
@@ -59,13 +56,13 @@ is the ID of the mount containing this file.
See the description of
.IR /proc/ pid /mountinfo .
.RE
-.IP
+.P
For eventfd file descriptors (see
.BR eventfd (2)),
we see (since Linux 3.8)
.\" commit cbac5542d48127b546a23d816380a7926eee1c25
the following fields:
-.IP
+.P
.in +4n
.EX
pos: 0
@@ -74,16 +71,16 @@ mnt_id: 10
eventfd\-count: 40
.EE
.in
-.IP
+.P
.I eventfd\-count
is the current value of the eventfd counter, in hexadecimal.
-.IP
+.P
For epoll file descriptors (see
.BR epoll (7)),
we see (since Linux 3.8)
.\" commit 138d22b58696c506799f8de759804083ff9effae
the following fields:
-.IP
+.P
.in +4n
.EX
pos: 0
@@ -93,7 +90,7 @@ tfd: 9 events: 19 data: 74253d2500000009
tfd: 7 events: 19 data: 74253d2500000007
.EE
.in
-.IP
+.P
Each of the lines beginning
.I tfd
describes one of the file descriptors being monitored via
@@ -110,13 +107,13 @@ descriptor.
The
.I data
field is the data value associated with this file descriptor.
-.IP
+.P
For signalfd file descriptors (see
.BR signalfd (2)),
we see (since Linux 3.8)
.\" commit 138d22b58696c506799f8de759804083ff9effae
the following fields:
-.IP
+.P
.in +4n
.EX
pos: 0
@@ -125,7 +122,7 @@ mnt_id: 10
sigmask: 0000000000000006
.EE
.in
-.IP
+.P
.I sigmask
is the hexadecimal mask of signals that are accepted via this
signalfd file descriptor.
@@ -135,12 +132,12 @@ and
.BR SIGQUIT ;
see
.BR signal (7).)
-.IP
+.P
For inotify file descriptors (see
.BR inotify (7)),
we see (since Linux 3.8)
the following fields:
-.IP
+.P
.in +4n
.EX
pos: 0
@@ -150,7 +147,7 @@ inotify wd:2 ino:7ef82a sdev:800001 mask:800afff ignored_mask:0 fhandle\-bytes:8
inotify wd:1 ino:192627 sdev:800001 mask:800afff ignored_mask:0 fhandle\-bytes:8 fhandle\-type:1 f_handle:27261900802dfd73
.EE
.in
-.IP
+.P
Each of the lines beginning with "inotify" displays information about
one file or directory that is being monitored.
The fields in this line are as follows:
@@ -168,19 +165,19 @@ The ID of the device where the target file resides (in hexadecimal).
.I mask
The mask of events being monitored for the target file (in hexadecimal).
.RE
-.IP
+.P
If the kernel was built with exportfs support, the path to the target
file is exposed as a file handle, via three hexadecimal fields:
.IR fhandle\-bytes ,
.IR fhandle\-type ,
and
.IR f_handle .
-.IP
+.P
For fanotify file descriptors (see
.BR fanotify (7)),
we see (since Linux 3.8)
the following fields:
-.IP
+.P
.in +4n
.EX
pos: 0
@@ -190,7 +187,7 @@ fanotify flags:0 event\-flags:88002
fanotify ino:19264f sdev:800001 mflags:0 mask:1 ignored_mask:0 fhandle\-bytes:8 fhandle\-type:1 f_handle:4f261900a82dfd73
.EE
.in
-.IP
+.P
The fourth line displays information defined when the fanotify group
was created via
.BR fanotify_init (2):
@@ -210,7 +207,7 @@ argument given to
.BR fanotify_init (2)
(expressed in hexadecimal).
.RE
-.IP
+.P
Each additional line shown in the file contains information
about one of the marks in the fanotify group.
Most of these fields are as for inotify, except:
@@ -228,16 +225,16 @@ The events mask for this mark
The mask of events that are ignored for this mark
(expressed in hexadecimal).
.RE
-.IP
+.P
For details on these fields, see
.BR fanotify_mark (2).
-.IP
+.P
For timerfd file descriptors (see
.BR timerfd (2)),
we see (since Linux 3.17)
.\" commit af9c4957cf212ad9cf0bee34c95cb11de5426e85
the following fields:
-.IP
+.P
.in +4n
.EX
pos: 0
@@ -296,5 +293,7 @@ fields contain the values that
.BR timerfd_gettime (2)
on this file descriptor would return.)
.RE
+.SH HISTORY
+Since Linux 2.6.22.
.SH SEE ALSO
.BR proc (5)
--
2.47.0.199.ga7371fff76-goog
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v4 2/4] proc_pid_fdinfo.5: Make pid clearer in the name and 1st paragraph
2024-11-01 21:18 [PATCH v4 1/4] proc_pid_fdinfo.5: Reduce indent for most of the page Ian Rogers
@ 2024-11-01 21:18 ` Ian Rogers
2024-11-01 21:18 ` [PATCH v4 3/4] proc_pid_fdinfo.5: Add subsection headers for different fd types Ian Rogers
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Ian Rogers @ 2024-11-01 21:18 UTC (permalink / raw)
To: Alejandro Colomar, G . Branden Robinson
Cc: David Airlie, Simona Vetter, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, Jonathan Corbet, dri-devel, linux-doc,
linux-kernel, linux-man, Ian Rogers
Previously the pid was highlighted through being a tagged paragraph
but not mentioned in the description. Add italics to the path
emphasizing pid and then change the first sentence to include pid in
the definition.
Suggested-by: G. Branden Robinson <g.branden.robinson@gmail.com>
Signed-off-by: Ian Rogers <irogers@google.com>
---
man/man5/proc_pid_fdinfo.5 | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/man/man5/proc_pid_fdinfo.5 b/man/man5/proc_pid_fdinfo.5
index ad739bd84..be1675b69 100644
--- a/man/man5/proc_pid_fdinfo.5
+++ b/man/man5/proc_pid_fdinfo.5
@@ -6,10 +6,11 @@
.\"
.TH proc_pid_fdinfo 5 (date) "Linux man-pages (unreleased)"
.SH NAME
-/proc/pid/fdinfo/ \- information about file descriptors
+.IR /proc/ pid /fdinfo " \- information about file descriptors"
.SH DESCRIPTION
-This is a subdirectory containing one entry for each file which the
-process has open, named by its file descriptor.
+This subdirectory contains one entry for each file that process
+.IR pid
+has open, named by its file descriptor.
The files in this directory are readable only by the owner of the process.
The contents of each file can be read to obtain information
about the corresponding file descriptor.
--
2.47.0.199.ga7371fff76-goog
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v4 3/4] proc_pid_fdinfo.5: Add subsection headers for different fd types
2024-11-01 21:18 [PATCH v4 1/4] proc_pid_fdinfo.5: Reduce indent for most of the page Ian Rogers
2024-11-01 21:18 ` [PATCH v4 2/4] proc_pid_fdinfo.5: Make pid clearer in the name and 1st paragraph Ian Rogers
@ 2024-11-01 21:18 ` Ian Rogers
2024-11-02 9:20 ` G. Branden Robinson
2024-11-01 21:18 ` [PATCH v4 4/4] proc_pid_fdinfo.5: Add DRM subsection Ian Rogers
2024-11-02 9:48 ` [PATCH v4 1/4] proc_pid_fdinfo.5: Reduce indent for most of the page Alejandro Colomar
3 siblings, 1 reply; 7+ messages in thread
From: Ian Rogers @ 2024-11-01 21:18 UTC (permalink / raw)
To: Alejandro Colomar, G . Branden Robinson
Cc: David Airlie, Simona Vetter, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, Jonathan Corbet, dri-devel, linux-doc,
linux-kernel, linux-man, Ian Rogers
Make the sections about eventfd, epoll, signalfd, inotify, fanotify,
timerfd better separated with a clearer subsection header.
Signed-off-by: Ian Rogers <irogers@google.com>
---
man/man5/proc_pid_fdinfo.5 | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/man/man5/proc_pid_fdinfo.5 b/man/man5/proc_pid_fdinfo.5
index be1675b69..b7efde8f4 100644
--- a/man/man5/proc_pid_fdinfo.5
+++ b/man/man5/proc_pid_fdinfo.5
@@ -57,6 +57,7 @@ is the ID of the mount containing this file.
See the description of
.IR /proc/ pid /mountinfo .
.RE
+.SS eventfd
.P
For eventfd file descriptors (see
.BR eventfd (2)),
@@ -75,6 +76,7 @@ eventfd\-count: 40
.P
.I eventfd\-count
is the current value of the eventfd counter, in hexadecimal.
+.SS epoll
.P
For epoll file descriptors (see
.BR epoll (7)),
@@ -108,6 +110,7 @@ descriptor.
The
.I data
field is the data value associated with this file descriptor.
+.SS signalfd
.P
For signalfd file descriptors (see
.BR signalfd (2)),
@@ -133,6 +136,7 @@ and
.BR SIGQUIT ;
see
.BR signal (7).)
+.SS inotify
.P
For inotify file descriptors (see
.BR inotify (7)),
@@ -173,6 +177,7 @@ file is exposed as a file handle, via three hexadecimal fields:
.IR fhandle\-type ,
and
.IR f_handle .
+.SS fanotify
.P
For fanotify file descriptors (see
.BR fanotify (7)),
@@ -229,6 +234,7 @@ The mask of events that are ignored for this mark
.P
For details on these fields, see
.BR fanotify_mark (2).
+.SS timerfd
.P
For timerfd file descriptors (see
.BR timerfd (2)),
--
2.47.0.199.ga7371fff76-goog
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v4 4/4] proc_pid_fdinfo.5: Add DRM subsection
2024-11-01 21:18 [PATCH v4 1/4] proc_pid_fdinfo.5: Reduce indent for most of the page Ian Rogers
2024-11-01 21:18 ` [PATCH v4 2/4] proc_pid_fdinfo.5: Make pid clearer in the name and 1st paragraph Ian Rogers
2024-11-01 21:18 ` [PATCH v4 3/4] proc_pid_fdinfo.5: Add subsection headers for different fd types Ian Rogers
@ 2024-11-01 21:18 ` Ian Rogers
2024-11-02 9:48 ` [PATCH v4 1/4] proc_pid_fdinfo.5: Reduce indent for most of the page Alejandro Colomar
3 siblings, 0 replies; 7+ messages in thread
From: Ian Rogers @ 2024-11-01 21:18 UTC (permalink / raw)
To: Alejandro Colomar, G . Branden Robinson
Cc: David Airlie, Simona Vetter, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, Jonathan Corbet, dri-devel, linux-doc,
linux-kernel, linux-man, Ian Rogers
Add description of DRM fdinfo information based on the Linux kernel's
`Documentation/gpu/drm-usage-stats.rst`:
https://docs.kernel.org/gpu/drm-usage-stats.html
Signed-off-by: Ian Rogers <irogers@google.com>
---
man/man5/proc_pid_fdinfo.5 | 94 ++++++++++++++++++++++++++++++++++++++
1 file changed, 94 insertions(+)
diff --git a/man/man5/proc_pid_fdinfo.5 b/man/man5/proc_pid_fdinfo.5
index b7efde8f4..bcaf33817 100644
--- a/man/man5/proc_pid_fdinfo.5
+++ b/man/man5/proc_pid_fdinfo.5
@@ -300,6 +300,100 @@ fields contain the values that
.BR timerfd_gettime (2)
on this file descriptor would return.)
.RE
+.SS Direct Rendering Manager
+.P
+DRM drivers can optionally choose to expose usage stats through
+/proc/pid/fdinfo/. For example:
+.P
+.in +4n
+.EX
+pos: 0
+flags: 02100002
+mnt_id: 26
+ino: 284
+drm-driver: i915
+drm-client-id: 39
+drm-pdev: 0000:00:02.0
+drm-total-system0: 6044 KiB
+drm-shared-system0: 0
+drm-active-system0: 0
+drm-resident-system0: 6044 KiB
+drm-purgeable-system0: 1688 KiB
+drm-total-stolen-system0: 0
+drm-shared-stolen-system0: 0
+drm-active-stolen-system0: 0
+drm-resident-stolen-system0: 0
+drm-purgeable-stolen-system0: 0
+drm-engine-render: 346249 ns
+drm-engine-copy: 0 ns
+drm-engine-video: 0 ns
+drm-engine-capacity-video: 2
+drm-engine-video-enhance: 0 ns
+.EE
+.TP
+.IR drm-driver: " .+ (mandatory)"
+The name this driver registered.
+.TP
+.IR drm-pdev: " <aaaa:bb:cc.d>"
+For PCI devices this should contain the PCI slot address of the device
+in question.
+.TP
+.IR drm-client-id: " [0-9]+"
+Unique value relating to the open DRM file descriptor used to
+distinguish duplicated and shared file descriptors.
+.P
+GPUs usually contain multiple execution engines. Each shall be given a
+stable and unique name (<engine_name>), with possible values
+documented in the driver specific documentation.
+.TP
+.IR drm-engine-<engine_name>: " [0-9]+ ns"
+GPU engine utilization, time spent busy executing workloads for this client.
+.TP
+.IR drm-engine-capacity-<engine_name>: " [0-9]+"
+Capacity of the engine if not 1, cannot be 0.
+.TP
+.IR drm-cycles-<engine_name>: " [0-9]+"
+Contains the number of busy cycles for the given engine. Values are
+not required to be constantly monotonic, but are required to catch up
+with the previously reported larger value within a reasonable
+period. Upon observing a value lower than what was previously read,
+userspace is expected to stay with that larger previous value until a
+monotonic update is seen.
+.TP
+.IR drm-total-cycles-<engine_name>: " [0-9]+"
+Contains the total number cycles for the given engine. This is a
+timestamp in GPU unspecified unit that matches the update rate of
+drm-cycles-<engine_name>. For drivers that implement this interface,
+the engine utilization can be calculated entirely on the GPU clock
+domain, without considering the CPU sleep time between 2 samples.
+.P
+Each possible memory type which can be used to store buffer objects by
+the GPU in question shall be given a stable and unique name <region>.
+The name "memory" is reserved to refer to normal system memory.
+.TP
+.IR drm-memory-<region>: " [0-9]+ [KiB|MiB]"
+The amount of storage currently consumed by the buffer objects belong
+to this client, in the respective memory region.
+.IP
+Default unit shall be bytes with optional unit specifiers of 'KiB' or 'MiB'
+indicating kibi- or mebi-bytes.
+.TP
+.IR drm-shared-<region>: " [0-9]+ [KiB|MiB]"
+The total size of buffers that are shared with another file (e.g., have more
+than a single handle).
+.TP
+.IR drm-total-<region>: " [0-9]+ [KiB|MiB]"
+The total size of buffers that including shared and private memory.
+.TP
+.IR drm-resident-<region>: " [0-9]+ [KiB|MiB]"
+The total size of buffers that are resident in the specified region.
+.TP
+.IR drm-purgeable-<region>: " [0-9]+ [KiB|MiB]"
+The total size of buffers that are purgeable.
+.TP
+.IR drm-active-<region>: " [0-9]+ [KiB|MiB]"
+The total size of buffers that are active on one or more engines.
+
.SH HISTORY
Since Linux 2.6.22.
.SH SEE ALSO
--
2.47.0.199.ga7371fff76-goog
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v4 3/4] proc_pid_fdinfo.5: Add subsection headers for different fd types
2024-11-01 21:18 ` [PATCH v4 3/4] proc_pid_fdinfo.5: Add subsection headers for different fd types Ian Rogers
@ 2024-11-02 9:20 ` G. Branden Robinson
2024-11-02 9:58 ` Alejandro Colomar
0 siblings, 1 reply; 7+ messages in thread
From: G. Branden Robinson @ 2024-11-02 9:20 UTC (permalink / raw)
To: Ian Rogers
Cc: Alejandro Colomar, David Airlie, Simona Vetter, Maarten Lankhorst,
Maxime Ripard, Thomas Zimmermann, Jonathan Corbet, dri-devel,
linux-doc, linux-kernel, linux-man
[-- Attachment #1: Type: text/plain, Size: 1448 bytes --]
Hi Ian,
At 2024-11-01T14:18:29-0700, Ian Rogers wrote:
> Make the sections about eventfd, epoll, signalfd, inotify, fanotify,
> timerfd better separated with a clearer subsection header.
>
> Signed-off-by: Ian Rogers <irogers@google.com>
[...]
> +.SS eventfd
> .P
[...]
> +.SS epoll
> .P
[...]
> +.SS signalfd
> .P
[...]
> +.SS inotify
> .P
[etc.]
I suggest deleting the paragraphing macros when you add (sub)sectioning
macros immediately before them. In these cases the `P` calls end up
doing nothing.
groff_man(7):
.SS [subheading‐text]
Set subheading‐text as a subsection heading indented
between a section heading and an ordinary paragraph (.P).
If no argument is given, a one‐line input trap is planted;
text on the next line becomes subheading‐text. The left
margin is reset to the value of the SN register to set the
heading text in bold (or the font specified by the string
HF). If the heading font \*[HF] is bold, use of an italic
style in subheading‐text is mapped to the bold‐italic
style if available in the font family. The inset level is
reset to 1, setting the left margin to the value of the IN
register. Text after subheading‐text is set as an
ordinary paragraph (.P).
Regards,
Branden
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v4 1/4] proc_pid_fdinfo.5: Reduce indent for most of the page
2024-11-01 21:18 [PATCH v4 1/4] proc_pid_fdinfo.5: Reduce indent for most of the page Ian Rogers
` (2 preceding siblings ...)
2024-11-01 21:18 ` [PATCH v4 4/4] proc_pid_fdinfo.5: Add DRM subsection Ian Rogers
@ 2024-11-02 9:48 ` Alejandro Colomar
3 siblings, 0 replies; 7+ messages in thread
From: Alejandro Colomar @ 2024-11-02 9:48 UTC (permalink / raw)
To: Ian Rogers
Cc: G . Branden Robinson, David Airlie, Simona Vetter,
Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
Jonathan Corbet, dri-devel, linux-doc, linux-kernel, linux-man
[-- Attachment #1: Type: text/plain, Size: 6476 bytes --]
Hi Ian,
On Fri, Nov 01, 2024 at 02:18:27PM -0700, Ian Rogers wrote:
> When /proc/pid/fdinfo was part of proc.5 man page the indentation made
> sense. As a standalone man page the indentation doesn't need to be so
> far over to the right. Remove the initial tagged pragraph, move the
> "since Linux 2.6.22" to a new history subsection.
>
> Suggested-by: G. Branden Robinson <g.branden.robinson@gmail.com>
> Signed-off-by: Ian Rogers <irogers@google.com>
> ---
> v4. Move since to history from Alejandro Colomar's <alx@kernel.org> review
> comment.
>
> ---
> man/man5/proc_pid_fdinfo.5 | 51 +++++++++++++++++++-------------------
> 1 file changed, 25 insertions(+), 26 deletions(-)
>
> diff --git a/man/man5/proc_pid_fdinfo.5 b/man/man5/proc_pid_fdinfo.5
> index 1e23bbe02..ad739bd84 100644
> --- a/man/man5/proc_pid_fdinfo.5
> +++ b/man/man5/proc_pid_fdinfo.5
> @@ -8,8 +8,6 @@
> .SH NAME
> /proc/pid/fdinfo/ \- information about file descriptors
> .SH DESCRIPTION
> -.TP
> -.IR /proc/ pid /fdinfo/ " (since Linux 2.6.22)"
> This is a subdirectory containing one entry for each file which the
> process has open, named by its file descriptor.
> The files in this directory are readable only by the owner of the process.
> @@ -17,9 +15,9 @@ The contents of each file can be read to obtain information
> about the corresponding file descriptor.
> The content depends on the type of file referred to by the
> corresponding file descriptor.
> -.IP
> +.P
> For regular files and directories, we see something like:
> -.IP
> +.P
> .in +4n
> .EX
> .RB "$" " cat /proc/12015/fdinfo/4"
> @@ -28,7 +26,7 @@ flags: 01002002
> mnt_id: 21
> .EE
> .in
> -.IP
> +.P
> The fields are as follows:
> .RS
> .TP
> @@ -51,7 +49,6 @@ this field incorrectly displayed the setting of
> at the time the file was opened,
> rather than the current setting of the close-on-exec flag.
> .TP
> -.I
> .I mnt_id
> This field, present since Linux 3.15,
> .\" commit 49d063cb353265c3af701bab215ac438ca7df36d
> @@ -59,13 +56,13 @@ is the ID of the mount containing this file.
> See the description of
> .IR /proc/ pid /mountinfo .
> .RE
> -.IP
> +.P
> For eventfd file descriptors (see
> .BR eventfd (2)),
> we see (since Linux 3.8)
> .\" commit cbac5542d48127b546a23d816380a7926eee1c25
> the following fields:
> -.IP
> +.P
> .in +4n
> .EX
> pos: 0
> @@ -74,16 +71,16 @@ mnt_id: 10
> eventfd\-count: 40
> .EE
> .in
> -.IP
> +.P
> .I eventfd\-count
> is the current value of the eventfd counter, in hexadecimal.
> -.IP
> +.P
> For epoll file descriptors (see
> .BR epoll (7)),
> we see (since Linux 3.8)
> .\" commit 138d22b58696c506799f8de759804083ff9effae
> the following fields:
> -.IP
> +.P
> .in +4n
> .EX
> pos: 0
> @@ -93,7 +90,7 @@ tfd: 9 events: 19 data: 74253d2500000009
> tfd: 7 events: 19 data: 74253d2500000007
> .EE
> .in
> -.IP
> +.P
> Each of the lines beginning
> .I tfd
> describes one of the file descriptors being monitored via
> @@ -110,13 +107,13 @@ descriptor.
> The
> .I data
> field is the data value associated with this file descriptor.
> -.IP
> +.P
> For signalfd file descriptors (see
> .BR signalfd (2)),
> we see (since Linux 3.8)
> .\" commit 138d22b58696c506799f8de759804083ff9effae
> the following fields:
> -.IP
> +.P
> .in +4n
> .EX
> pos: 0
> @@ -125,7 +122,7 @@ mnt_id: 10
> sigmask: 0000000000000006
> .EE
> .in
> -.IP
> +.P
> .I sigmask
> is the hexadecimal mask of signals that are accepted via this
> signalfd file descriptor.
> @@ -135,12 +132,12 @@ and
> .BR SIGQUIT ;
> see
> .BR signal (7).)
> -.IP
> +.P
> For inotify file descriptors (see
> .BR inotify (7)),
> we see (since Linux 3.8)
> the following fields:
> -.IP
> +.P
> .in +4n
> .EX
> pos: 0
> @@ -150,7 +147,7 @@ inotify wd:2 ino:7ef82a sdev:800001 mask:800afff ignored_mask:0 fhandle\-bytes:8
> inotify wd:1 ino:192627 sdev:800001 mask:800afff ignored_mask:0 fhandle\-bytes:8 fhandle\-type:1 f_handle:27261900802dfd73
> .EE
> .in
> -.IP
> +.P
> Each of the lines beginning with "inotify" displays information about
> one file or directory that is being monitored.
> The fields in this line are as follows:
> @@ -168,19 +165,19 @@ The ID of the device where the target file resides (in hexadecimal).
> .I mask
> The mask of events being monitored for the target file (in hexadecimal).
> .RE
> -.IP
> +.P
> If the kernel was built with exportfs support, the path to the target
> file is exposed as a file handle, via three hexadecimal fields:
> .IR fhandle\-bytes ,
> .IR fhandle\-type ,
> and
> .IR f_handle .
> -.IP
> +.P
> For fanotify file descriptors (see
> .BR fanotify (7)),
> we see (since Linux 3.8)
> the following fields:
> -.IP
> +.P
> .in +4n
> .EX
> pos: 0
> @@ -190,7 +187,7 @@ fanotify flags:0 event\-flags:88002
> fanotify ino:19264f sdev:800001 mflags:0 mask:1 ignored_mask:0 fhandle\-bytes:8 fhandle\-type:1 f_handle:4f261900a82dfd73
> .EE
> .in
> -.IP
> +.P
> The fourth line displays information defined when the fanotify group
> was created via
> .BR fanotify_init (2):
> @@ -210,7 +207,7 @@ argument given to
> .BR fanotify_init (2)
> (expressed in hexadecimal).
> .RE
> -.IP
> +.P
> Each additional line shown in the file contains information
> about one of the marks in the fanotify group.
> Most of these fields are as for inotify, except:
> @@ -228,16 +225,16 @@ The events mask for this mark
> The mask of events that are ignored for this mark
> (expressed in hexadecimal).
> .RE
> -.IP
> +.P
> For details on these fields, see
> .BR fanotify_mark (2).
> -.IP
> +.P
> For timerfd file descriptors (see
> .BR timerfd (2)),
> we see (since Linux 3.17)
> .\" commit af9c4957cf212ad9cf0bee34c95cb11de5426e85
> the following fields:
> -.IP
> +.P
> .in +4n
> .EX
> pos: 0
> @@ -296,5 +293,7 @@ fields contain the values that
> .BR timerfd_gettime (2)
> on this file descriptor would return.)
> .RE
> +.SH HISTORY
> +Since Linux 2.6.22.
In the HISTORY section we don't add the "Since", since it's obvious.
Just
Linux x.y.z.
Have a lovely day!
Alex
> .SH SEE ALSO
> .BR proc (5)
> --
> 2.47.0.199.ga7371fff76-goog
>
--
<https://www.alejandro-colomar.es/>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v4 3/4] proc_pid_fdinfo.5: Add subsection headers for different fd types
2024-11-02 9:20 ` G. Branden Robinson
@ 2024-11-02 9:58 ` Alejandro Colomar
0 siblings, 0 replies; 7+ messages in thread
From: Alejandro Colomar @ 2024-11-02 9:58 UTC (permalink / raw)
To: G. Branden Robinson
Cc: Ian Rogers, David Airlie, Simona Vetter, Maarten Lankhorst,
Maxime Ripard, Thomas Zimmermann, Jonathan Corbet, dri-devel,
linux-doc, linux-kernel, linux-man
[-- Attachment #1: Type: text/plain, Size: 1743 bytes --]
Hi Branden, Ian,
On Sat, Nov 02, 2024 at 04:20:07AM -0500, G. Branden Robinson wrote:
> Hi Ian,
>
> At 2024-11-01T14:18:29-0700, Ian Rogers wrote:
> > Make the sections about eventfd, epoll, signalfd, inotify, fanotify,
> > timerfd better separated with a clearer subsection header.
> >
> > Signed-off-by: Ian Rogers <irogers@google.com>
> [...]
> > +.SS eventfd
> > .P
> [...]
> > +.SS epoll
> > .P
> [...]
> > +.SS signalfd
> > .P
> [...]
> > +.SS inotify
> > .P
> [etc.]
>
> I suggest deleting the paragraphing macros when you add (sub)sectioning
> macros immediately before them. In these cases the `P` calls end up
> doing nothing.
Indeed. We have warnings (see `make help`) that trigger for this.
Have a lovely day!
Alex
>
> groff_man(7):
> .SS [subheading‐text]
> Set subheading‐text as a subsection heading indented
> between a section heading and an ordinary paragraph (.P).
> If no argument is given, a one‐line input trap is planted;
> text on the next line becomes subheading‐text. The left
> margin is reset to the value of the SN register to set the
> heading text in bold (or the font specified by the string
> HF). If the heading font \*[HF] is bold, use of an italic
> style in subheading‐text is mapped to the bold‐italic
> style if available in the font family. The inset level is
> reset to 1, setting the left margin to the value of the IN
> register. Text after subheading‐text is set as an
> ordinary paragraph (.P).
--
<https://www.alejandro-colomar.es/>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-11-02 9:58 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-01 21:18 [PATCH v4 1/4] proc_pid_fdinfo.5: Reduce indent for most of the page Ian Rogers
2024-11-01 21:18 ` [PATCH v4 2/4] proc_pid_fdinfo.5: Make pid clearer in the name and 1st paragraph Ian Rogers
2024-11-01 21:18 ` [PATCH v4 3/4] proc_pid_fdinfo.5: Add subsection headers for different fd types Ian Rogers
2024-11-02 9:20 ` G. Branden Robinson
2024-11-02 9:58 ` Alejandro Colomar
2024-11-01 21:18 ` [PATCH v4 4/4] proc_pid_fdinfo.5: Add DRM subsection Ian Rogers
2024-11-02 9:48 ` [PATCH v4 1/4] proc_pid_fdinfo.5: Reduce indent for most of the page Alejandro Colomar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).