Lines Matching refs:Result

97     pub fn register_device<T: DeviceINode>(&self, name: &str, device: Arc<T>) -> Result<(), i32> {  in register_device()  argument
138 pub fn unregister_device<T: DeviceINode>(&self, name: &str, device: Arc<T>) -> Result<(), i32> { in unregister_device() argument
233 pub fn add_dir(&self, name: &str) -> Result<(), i32> { in add_dir() argument
250 pub fn add_dev(&self, name: &str, dev: Arc<dyn IndexNode>) -> Result<(), i32> { in add_dev() argument
261 pub fn remove(&self, name: &str) -> Result<(), i32> { in remove() argument
276 _data: usize,) -> Result<Arc<dyn IndexNode>, i32>{ in do_create_with_data()
325 fn open(&self, _data: &mut super::vfs::FilePrivateData) -> Result<(), i32> { in open() argument
329 fn close(&self, _data: &mut super::vfs::FilePrivateData) -> Result<(), i32> { in close() argument
339 ) -> Result<Arc<dyn IndexNode>, i32> { in create_with_data()
346 fn find(&self, name: &str) -> Result<Arc<dyn IndexNode>, i32> { in find()
371 fn get_entry_name(&self, ino: super::vfs::InodeId) -> Result<String, i32> { in get_entry_name()
403 fn ioctl(&self, _cmd: u32, _data: usize) -> Result<usize, i32> { in ioctl()
407 fn list(&self) -> Result<Vec<String>, i32> { in list()
421 fn metadata(&self) -> Result<Metadata, i32> { in metadata()
425 fn set_metadata(&self, metadata: &Metadata) -> Result<(), i32> { in set_metadata() argument
437 fn poll(&self) -> Result<super::vfs::PollStatus, i32> { in poll()
458 ) -> Result<usize, i32> { in read_at()
469 ) -> Result<usize, i32> { in write_at()
483 let devfs_inode: Result<Arc<dyn IndexNode>, i32> = ROOT_INODE().find("dev");
502 pub fn devfs_register<T: DeviceINode>(name: &str, device: Arc<T>) -> Result<(), i32> { in devfs_register() argument
508 pub fn devfs_unregister<T: DeviceINode>(name: &str, device: Arc<T>) -> Result<(), i32> { in devfs_unregister() argument