Skip to content

Commit

Permalink
docs: correct invalid link in mod fanotify (#2493)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC committed Sep 9, 2024
1 parent 8230103 commit 81acce2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/sys/fanotify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ use std::os::unix::io::{AsFd, AsRawFd, BorrowedFd, FromRawFd, OwnedFd, RawFd};
use std::ptr;

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

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

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

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

libc_bitflags! {
/// Response to be wrapped in `FanotifyResponse` and sent to the `Fanotify`
/// Response to be wrapped in [`FanotifyResponse`] and sent to the [`Fanotify`]
/// group to allow or deny an event.
pub struct Response: u32 {
/// Allow the event.
Expand Down

0 comments on commit 81acce2

Please sign in to comment.