Skip to content

Commit ec4beb5

Browse files
authored
docs: correct limit value of FAN_UNLIMITED_QUEUE and FAN_UNLIMITED_MARKS[skip ci] (#2408)
1 parent 84c0444 commit ec4beb5

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/sys/fanotify.rs

+15-2
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,22 @@ libc_bitflags! {
9696
/// final data.
9797
FAN_CLASS_PRE_CONTENT;
9898

99-
/// Remove the limit of 16384 events for the event queue.
99+
/// Remove the limit on the number of events in the event queue.
100+
///
101+
/// Prior to Linux kernel 5.13, this limit was hardcoded to 16384. After
102+
/// 5.13, one can change it via file `/proc/sys/fs/fanotify/max_queued_events`.
103+
///
104+
/// See `fanotify(7)` for details about this limit. Use of this flag
105+
/// requires the `CAP_SYS_ADMIN` capability.
100106
FAN_UNLIMITED_QUEUE;
101-
/// Remove the limit of 8192 marks.
107+
/// Remove the limit on the number of fanotify marks per user.
108+
///
109+
/// Prior to Linux kernel 5.13, this limit was hardcoded to 8192 (per
110+
/// group, not per user). After 5.13, one can change it via file
111+
/// `/proc/sys/fs/fanotify/max_user_marks`.
112+
///
113+
/// See `fanotify(7)` for details about this limit. Use of this flag
114+
/// requires the `CAP_SYS_ADMIN` capability.
102115
FAN_UNLIMITED_MARKS;
103116

104117
/// Make `FanotifyEvent::pid` return pidfd. Since Linux 5.15.

0 commit comments

Comments
 (0)