Macro kernel::new_mutex

source ·
macro_rules! new_mutex {
    ($inner:expr $(, $name:literal)? $(,)?) => { ... };
}
Expand description

Creates a Mutex initialiser with the given name and a newly-created lock class.

It uses the name if one is given, otherwise it generates one based on the file name and line number.

This documentation is an old archive. Please see https://rust.docs.kernel.org instead.