Lines Matching refs:Result
6 use super::super::Result;
36 fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result { in fmt() argument
69 pub fn new(attr: &BpfMapMeta) -> Result<Self> { in new()
83 fn lookup_elem(&mut self, key: &[u8]) -> Result<Option<&[u8]>> { in lookup_elem()
94 fn update_elem(&mut self, key: &[u8], value: &[u8], _flags: u64) -> Result<()> { in update_elem() argument
110 fn delete_elem(&mut self, _key: &[u8]) -> Result<()> { in delete_elem() argument
113 fn for_each_elem(&mut self, cb: BpfCallBackFn, ctx: *const u8, flags: u64) -> Result<u32> { in for_each_elem()
131 fn lookup_and_delete_elem(&mut self, _key: &[u8], _value: &mut [u8]) -> Result<()> { in lookup_and_delete_elem() argument
135 fn get_next_key(&self, key: Option<&[u8]>, next_key: &mut [u8]) -> Result<()> { in get_next_key() argument
152 fn freeze(&self) -> Result<()> { in freeze() argument
156 fn first_value_ptr(&self) -> Result<*const u8> { in first_value_ptr()
169 fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result { in fmt() argument
177 pub fn new(attr: &BpfMapMeta) -> Result<Self> { in new()
190 fn lookup_elem(&mut self, key: &[u8]) -> Result<Option<&[u8]>> { in lookup_elem()
193 fn update_elem(&mut self, key: &[u8], value: &[u8], flags: u64) -> Result<()> { in update_elem() argument
196 fn delete_elem(&mut self, key: &[u8]) -> Result<()> { in delete_elem() argument
199 fn for_each_elem(&mut self, cb: BpfCallBackFn, ctx: *const u8, flags: u64) -> Result<u32> { in for_each_elem()
202 fn lookup_and_delete_elem(&mut self, _key: &[u8], _value: &mut [u8]) -> Result<()> { in lookup_and_delete_elem() argument
205 fn lookup_percpu_elem(&mut self, key: &[u8], cpu: u32) -> Result<Option<&[u8]>> { in lookup_percpu_elem()
212 fn get_next_key(&self, key: Option<&[u8]>, next_key: &mut [u8]) -> Result<()> { in get_next_key() argument
215 fn first_value_ptr(&self) -> Result<*const u8> { in first_value_ptr()
227 fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result { in fmt() argument
235 pub fn new(attr: &BpfMapMeta) -> Result<Self> { in new()
246 fn lookup_elem(&mut self, key: &[u8]) -> Result<Option<&[u8]>> { in lookup_elem()
251 fn update_elem(&mut self, key: &[u8], value: &[u8], _flags: u64) -> Result<()> { in update_elem() argument
258 fn delete_elem(&mut self, key: &[u8]) -> Result<()> { in delete_elem() argument
263 fn for_each_elem(&mut self, cb: BpfCallBackFn, ctx: *const u8, _flags: u64) -> Result<u32> { in for_each_elem()
277 fn lookup_and_delete_elem(&mut self, _key: &[u8], _value: &mut [u8]) -> Result<()> { in lookup_and_delete_elem() argument
280 fn first_value_ptr(&self) -> Result<*const u8> { in first_value_ptr()