Lines Matching refs:Result
1 use super::Result;
26 pub fn new(attr: &BpfMapMeta) -> Result<Self> { in new()
41 fn lookup_elem(&mut self, key: &[u8]) -> Result<Option<&[u8]>> { in lookup_elem()
45 fn update_elem(&mut self, key: &[u8], value: &[u8], flags: u64) -> Result<()> { in update_elem() argument
50 fn delete_elem(&mut self, key: &[u8]) -> Result<()> { in delete_elem() argument
54 fn for_each_elem(&mut self, cb: BpfCallBackFn, ctx: *const u8, flags: u64) -> Result<u32> { in for_each_elem()
69 fn lookup_and_delete_elem(&mut self, key: &[u8], value: &mut [u8]) -> Result<()> { in lookup_and_delete_elem() argument
79 fn get_next_key(&self, key: Option<&[u8]>, next_key: &mut [u8]) -> Result<()> { in get_next_key() argument
107 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() argument
114 pub fn new(attr: &BpfMapMeta) -> Result<Self> { in new()
126 fn lookup_elem(&mut self, key: &[u8]) -> Result<Option<&[u8]>> { in lookup_elem()
129 fn update_elem(&mut self, key: &[u8], value: &[u8], flags: u64) -> Result<()> { in update_elem() argument
132 fn delete_elem(&mut self, key: &[u8]) -> Result<()> { in delete_elem() argument
135 fn for_each_elem(&mut self, cb: BpfCallBackFn, ctx: *const u8, flags: u64) -> Result<u32> { in for_each_elem()
138 fn lookup_and_delete_elem(&mut self, key: &[u8], value: &mut [u8]) -> Result<()> { in lookup_and_delete_elem() argument
143 fn lookup_percpu_elem(&mut self, key: &[u8], cpu: u32) -> Result<Option<&[u8]>> { in lookup_percpu_elem()
150 fn get_next_key(&self, key: Option<&[u8]>, next_key: &mut [u8]) -> Result<()> { in get_next_key() argument
153 fn first_value_ptr(&self) -> Result<*const u8> { in first_value_ptr()