Trait kernel::sysctl::SysctlStorage
source · [−]pub trait SysctlStorage: Sync {
fn store_value(&self, data: &[u8]) -> (usize, Result);
fn read_value(&self, data: &mut UserSlicePtrWriter) -> (usize, Result);
}
Available on
CONFIG_SYSCTL
only.Expand description
Sysctl storage.
Required Methods
sourcefn store_value(&self, data: &[u8]) -> (usize, Result)
fn store_value(&self, data: &[u8]) -> (usize, Result)
Writes a byte slice.
sourcefn read_value(&self, data: &mut UserSlicePtrWriter) -> (usize, Result)
fn read_value(&self, data: &mut UserSlicePtrWriter) -> (usize, Result)
Reads via a UserSlicePtrWriter
.