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

Bitmask for access mode flags.

Examples

use kernel::file;
if (flags & file::flags::O_ACCMODE) == file::flags::O_RDONLY {
    do_something();
}
This documentation is an old archive. Please see https://rust.docs.kernel.org instead.