Lines Matching refs:Result
7 use super::Result;
41 fn lookup_elem(&mut self, _key: &[u8]) -> Result<Option<&[u8]>> { in lookup_elem()
47 fn update_elem(&mut self, _key: &[u8], _value: &[u8], _flags: u64) -> Result<()> { in update_elem() argument
53 fn delete_elem(&mut self, _key: &[u8]) -> Result<()> { in delete_elem() argument
60 fn for_each_elem(&mut self, _cb: BpfCallBackFn, _ctx: *const u8, _flags: u64) -> Result<u32> { in for_each_elem()
65 fn lookup_and_delete_elem(&mut self, _key: &[u8], _value: &mut [u8]) -> Result<()> { in lookup_and_delete_elem() argument
70 fn lookup_percpu_elem(&mut self, _key: &[u8], _cpu: u32) -> Result<Option<&[u8]>> { in lookup_percpu_elem()
76 fn get_next_key(&self, _key: Option<&[u8]>, _next_key: &mut [u8]) -> Result<()> { in get_next_key() argument
81 fn push_elem(&mut self, _value: &[u8], _flags: u64) -> Result<()> { in push_elem() argument
86 fn pop_elem(&mut self, _value: &mut [u8]) -> Result<()> { in pop_elem() argument
91 fn peek_elem(&self, _value: &mut [u8]) -> Result<()> { in peek_elem() argument
98 fn freeze(&self) -> Result<()> { in freeze() argument
103 fn first_value_ptr(&self) -> Result<*const u8> { in first_value_ptr()
135 fn open(&self, _data: SpinLockGuard<FilePrivateData>, _mode: &FileMode) -> Result<()> { in open() argument
138 fn close(&self, _data: SpinLockGuard<FilePrivateData>) -> Result<()> { in close() argument
147 ) -> Result<usize> { in read_at()
157 ) -> Result<usize> { in write_at()
161 fn metadata(&self) -> Result<Metadata> { in metadata()
170 fn resize(&self, _len: usize) -> Result<()> { in resize() argument
182 fn list(&self) -> Result<Vec<String>> { in list()
192 pub fn bpf_map_create(attr: &bpf_attr) -> Result<usize> { in bpf_map_create()
254 pub fn bpf_map_update_elem(attr: &bpf_attr) -> Result<usize> { in bpf_map_update_elem()
272 pub fn bpf_map_freeze(attr: &bpf_attr) -> Result<usize> { in bpf_map_freeze()
284 pub fn bpf_lookup_elem(attr: &bpf_attr) -> Result<usize> { in bpf_lookup_elem()
313 pub fn bpf_map_get_next_key(attr: &bpf_attr) -> Result<usize> { in bpf_map_get_next_key()
344 pub fn bpf_map_delete_elem(attr: &bpf_attr) -> Result<usize> { in bpf_map_delete_elem()
360 pub fn bpf_map_lookup_batch(_attr: &bpf_attr) -> Result<usize> { in bpf_map_lookup_batch()
387 pub fn bpf_map_lookup_and_delete_elem(attr: &bpf_attr) -> Result<usize> { in bpf_map_lookup_and_delete_elem()
405 fn get_map_file(fd: i32) -> Result<Arc<BpfMap>> { in get_map_file()