@@ -7,7 +7,7 @@ use crate::libproc::sys::listpids;
7
7
use crate :: libproc:: sys:: listpidspath;
8
8
9
9
/// `ProcFilter` is used to filter process ids.
10
- /// See [`pids_by_type`] and `pids_by_type_and_path` (macos only) for details.
10
+ /// See [`pids_by_type`] and `pids_by_type_and_path` (macOS only) for details.
11
11
#[ derive( Copy , Clone ) ]
12
12
pub enum ProcFilter {
13
13
/// All processes
@@ -75,12 +75,12 @@ pub fn pids_by_type(filter: ProcFilter) -> io::Result<Vec<u32>> {
75
75
listpids ( filter)
76
76
}
77
77
78
- /// Returns the PIDs of active processes that reference reference an open file
79
- /// with the given path or volume, with or without files opened with the
80
- /// `O_EVTONLY` flag.
78
+ /// Returns the PIDs of active processes that reference an open file with the given path or volume.
81
79
///
82
- /// (Files opened with the `O_EVTONLY` flag will not prevent a volume from being
83
- /// unmounted).
80
+ ///Filter for pids with or without files opened with the `O_EVTONLY` flag.
81
+ ///
82
+ /// Files opened with the `O_EVTONLY` flag will not prevent a volume from being
83
+ /// unmounted.
84
84
///
85
85
/// # Errors
86
86
///
@@ -126,13 +126,12 @@ pub fn pids_by_path(
126
126
listpidspath ( ProcFilter :: All , path, is_volume, exclude_event_only)
127
127
}
128
128
129
- /// Returns a filtered list of PIDs of active processes that reference reference
130
- /// an open file with the given path or volume, with or without files opened
131
- /// with the `O_EVTONLY` flag. Use a [`ProcFilter`] member to specify how to
132
- /// filter the list of PIDs returned.
129
+ /// Get a filtered list of PIDs of active processes that reference an open file with the given path or volume.
130
+ ///
131
+ /// Filter the list for pids with or without files opened with the `O_EVTONLY` flag.
132
+ /// Use a [`ProcFilter`] member to specify how to filter the list of PIDs returned.
133
133
///
134
- /// (Files opened with the `O_EVTONLY` flag will not prevent a volume from being
135
- /// unmounted).
134
+ /// Files opened with the `O_EVTONLY` flag will not prevent a volume from being unmounted.
136
135
///
137
136
/// # Errors
138
137
///
0 commit comments