Skip to content

Commit 81acce2

Browse files
authored
docs: correct invalid link in mod fanotify (#2493)
1 parent 8230103 commit 81acce2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/sys/fanotify.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ use std::os::unix::io::{AsFd, AsRawFd, BorrowedFd, FromRawFd, OwnedFd, RawFd};
2020
use std::ptr;
2121

2222
libc_bitflags! {
23-
/// Mask for defining which events shall be listened with
24-
/// [`fanotify_mark`](fn.fanotify_mark.html) and for querying notifications.
23+
/// Mask for defining which events shall be listened with [`Fanotify::mark()`]
24+
/// and for querying notifications.
2525
pub struct MaskFlags: u64 {
2626
/// File was accessed.
2727
FAN_ACCESS;
@@ -80,7 +80,7 @@ libc_bitflags! {
8080
}
8181

8282
libc_bitflags! {
83-
/// Configuration options for [`fanotify_init`](fn.fanotify_init.html).
83+
/// Configuration options for [`Fanotify::init()`].
8484
pub struct InitFlags: libc::c_uint {
8585
/// Close-on-exec flag set on the file descriptor.
8686
FAN_CLOEXEC;
@@ -162,7 +162,7 @@ impl From<EventFFlags> for OFlag {
162162
}
163163

164164
libc_bitflags! {
165-
/// Configuration options for [`fanotify_mark`](fn.fanotify_mark.html).
165+
/// Configuration options for [`Fanotify::mark()`].
166166
pub struct MarkFlags: libc::c_uint {
167167
/// Add the events to the marks.
168168
FAN_MARK_ADD;
@@ -198,8 +198,8 @@ libc_bitflags! {
198198
/// Compile version number of fanotify API.
199199
pub const FANOTIFY_METADATA_VERSION: u8 = libc::FANOTIFY_METADATA_VERSION;
200200

201-
/// Abstract over `libc::fanotify_event_metadata`, which represents an event
202-
/// received via `Fanotify::read_events`.
201+
/// Abstract over [`libc::fanotify_event_metadata`], which represents an event
202+
/// received via [`Fanotify::read_events`].
203203
// Is not Clone due to fd field, to avoid use-after-close scenarios.
204204
#[derive(Debug, Eq, Hash, PartialEq)]
205205
#[repr(transparent)]
@@ -285,7 +285,7 @@ impl<'a> FanotifyResponse<'a> {
285285
}
286286

287287
libc_bitflags! {
288-
/// Response to be wrapped in `FanotifyResponse` and sent to the `Fanotify`
288+
/// Response to be wrapped in [`FanotifyResponse`] and sent to the [`Fanotify`]
289289
/// group to allow or deny an event.
290290
pub struct Response: u32 {
291291
/// Allow the event.

0 commit comments

Comments
 (0)