@@ -240,9 +240,9 @@ pub enum Advice {
240240impl Advice {
241241 /// `POSIX_MADV_DONTNEED`
242242 ///
243- /// On Linux, this is mapped to `POSIX_MADV_NORMAL` because
244- /// Linux's `MADV_DONTNEED` differs from `POSIX_MADV_DONTNEED`. See
245- /// `LinuxDontNeed` for the Linux behavior.
243+ /// On Linux, this is mapped to `POSIX_MADV_NORMAL` because Linux's
244+ /// `MADV_DONTNEED` differs from `POSIX_MADV_DONTNEED`. See `LinuxDontNeed`
245+ /// for the Linux behavior.
246246 pub const DontNeed : Self = Self :: Normal ;
247247}
248248
@@ -271,25 +271,23 @@ bitflags! {
271271 #[ repr( transparent) ]
272272 #[ derive( Copy , Clone , Eq , PartialEq , Hash , Debug ) ]
273273 pub struct MlockAllFlags : u32 {
274- /// Used together with `MCL_CURRENT`, `MCL_FUTURE`, or both. Mark
275- /// all current (with `MCL_CURRENT`) or future (with `MCL_FUTURE`)
276- /// mappings to lock pages when they are faulted in. When
277- /// used with `MCL_CURRENT`, all present pages are locked, but
278- /// `mlockall()` will not fault in non-present pages. When used
279- /// with `MCL_FUTURE`, all future mappings will be marked to
280- /// lock pages when they are faulted in, but they will not be
281- /// populated by the lock when the mapping is created.
282- /// `MCL_ONFAULT` must be used with either `MCL_CURRENT` or
274+ /// Used together with `MCL_CURRENT`, `MCL_FUTURE`, or both. Mark all
275+ /// current (with `MCL_CURRENT`) or future (with `MCL_FUTURE`) mappings
276+ /// to lock pages when they are faulted in. When used with
277+ /// `MCL_CURRENT`, all present pages are locked, but `mlockall` will
278+ /// not fault in non-present pages. When used with `MCL_FUTURE`, all
279+ /// future mappings will be marked to lock pages when they are faulted
280+ /// in, but they will not be populated by the lock when the mapping is
281+ /// created. `MCL_ONFAULT` must be used with either `MCL_CURRENT` or
283282 /// `MCL_FUTURE` or both.
284283 const ONFAULT = linux_raw_sys:: general:: MCL_ONFAULT ;
285- /// Lock all pages which will become mapped into the address
286- /// space of the process in the future. These could be, for
287- /// instance, new pages required by a growing heap and stack
288- /// as well as new memory-mapped files or shared memory
289- /// regions.
284+ /// Lock all pages which will become mapped into the address space of
285+ /// the process in the future. These could be, for instance, new pages
286+ /// required by a growing heap and stack as well as new memory-mapped
287+ /// files or shared memory regions.
290288 const FUTURE = linux_raw_sys:: general:: MCL_FUTURE ;
291- /// Lock all pages which are currently mapped into the address
292- /// space of the process.
289+ /// Lock all pages which are currently mapped into the address space of
290+ /// the process.
293291 const CURRENT = linux_raw_sys:: general:: MCL_CURRENT ;
294292
295293 /// <https://docs.rs/bitflags/latest/bitflags/#externally-defined-flags>
0 commit comments