@@ -20,8 +20,8 @@ use std::os::unix::io::{AsFd, AsRawFd, BorrowedFd, FromRawFd, OwnedFd, RawFd};
2020use std:: ptr;
2121
2222libc_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
8282libc_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
164164libc_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.
199199pub 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
287287libc_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