Macro kernel::new_spinlock

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

Creates a SpinLock 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.