@@ -7,7 +7,7 @@ use crate::libproc::sys::listpids;
77use crate :: libproc:: sys:: listpidspath;
88
99/// `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.
1111#[ derive( Copy , Clone ) ]
1212pub enum ProcFilter {
1313 /// All processes
@@ -75,12 +75,12 @@ pub fn pids_by_type(filter: ProcFilter) -> io::Result<Vec<u32>> {
7575 listpids ( filter)
7676}
7777
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.
8179///
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.
8484///
8585/// # Errors
8686///
@@ -126,13 +126,12 @@ pub fn pids_by_path(
126126 listpidspath ( ProcFilter :: All , path, is_volume, exclude_event_only)
127127}
128128
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.
133133///
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.
136135///
137136/// # Errors
138137///
0 commit comments