kernel::fs::file::flags

Constant O_ACCMODE

Source
pub const O_ACCMODE: u32 = bindings::O_ACCMODE; // 3u32
Expand description

Bitmask for access mode flags.

§Examples

use kernel::fs::file;
if (flags & file::flags::O_ACCMODE) == file::flags::O_RDONLY {
    do_something();
}