Lines Matching refs:Result

37 type Result<T> = core::result::Result<T, SystemError>;  typedef
41 fn set_bpf_prog(&self, _bpf_prog: Arc<File>) -> Result<()> { in set_bpf_prog() argument
45 fn enable(&self) -> Result<()> { in enable() argument
49 fn disable(&self) -> Result<()> { in disable() argument
72 ) -> core::result::Result<(), SystemError> { in remove_epoll() argument
84 fn do_poll(&self) -> Result<usize> { in do_poll()
91 fn epoll_callback(&self) -> Result<()> { in epoll_callback() argument
107 fn mmap(&self, start: usize, len: usize, offset: usize) -> Result<()> { in mmap() argument
110 fn open(&self, _data: SpinLockGuard<FilePrivateData>, _mode: &FileMode) -> Result<()> { in open() argument
113 fn close(&self, _data: SpinLockGuard<FilePrivateData>) -> Result<()> { in close() argument
122 ) -> Result<usize> { in read_at()
132 ) -> Result<usize> { in write_at()
136 fn poll(&self, _private_data: &FilePrivateData) -> Result<usize> { in poll()
140 fn metadata(&self) -> Result<Metadata> { in metadata()
149 fn resize(&self, _len: usize) -> Result<()> { in resize() argument
153 fn ioctl(&self, cmd: u32, data: usize, _private_data: &FilePrivateData) -> Result<usize> { in ioctl()
183 ) -> core::result::Result<usize, SystemError> { in kernel_ioctl()
199 fn list(&self) -> Result<Vec<String>> { in list()
251 ) -> Result<usize> { in sys_perf_event_open()
268 ) -> Result<usize> { in perf_event_open()
313 pub fn perf_event_output(_ctx: *mut c_void, fd: usize, _flags: u32, data: &[u8]) -> Result<()> { in perf_event_output() argument
326 fn get_perf_event_file(fd: usize) -> Result<Arc<PerfEventInode>> { in get_perf_event_file()