/DragonOS-0.1.5/kernel/src/libs/ |
D | lockref.rs | 53 fn cmpxchg_loop(&mut self, mode: CmpxchgMode) -> Result<i32, i32> { in cmpxchg_loop() argument 123 fn cmpxchg_loop(&mut self, mode: CmpxchgMode) -> Result<i32, i32> { in cmpxchg_loop() argument 147 pub fn inc_not_zero(&mut self) -> Result<i32, i32> { in inc_not_zero() argument 176 pub fn inc_not_dead(&mut self) -> Result<i32, i32> { in inc_not_dead() argument 206 pub fn dec(&mut self) -> Result<i32, i32> { in dec() argument 238 pub fn dec_return(&mut self) -> Result<i32, i32> { in dec_return() argument 265 pub fn dec_not_zero(&mut self) -> Result<i32, i32> { in dec_not_zero() argument 296 pub fn dec_or_lock_not_zero(&mut self) -> Result<i32, i32> { in dec_or_lock_not_zero() argument
|
D | vec_cursor.rs | 48 pub fn read_u8(&mut self) -> Result<u8, i32> { in read_u8() argument 57 pub fn read_u16(&mut self) -> Result<u16, i32> { in read_u16() argument 71 pub fn read_u32(&mut self) -> Result<u32, i32> { in read_u32() argument 85 pub fn read_u64(&mut self) -> Result<u64, i32> { in read_u64() argument 104 pub fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), i32> { in read_exact() argument 116 pub fn read_u16_into(&mut self, buf: &mut [u16]) -> Result<(), i32> { in read_u16_into() argument 134 pub fn seek(&mut self, origin: SeekFrom) -> Result<usize, i32> { in seek() argument 160 pub fn write_u8(&mut self, value: u8) -> Result<u8, i32> { in write_u8() argument 172 pub fn write_u16(&mut self, value: u16) -> Result<u16, i32> { in write_u16() argument 186 pub fn write_u32(&mut self, value: u32) -> Result<u32, i32> { in write_u32() argument [all …]
|
D | semaphore.rs | 21 fn new(counter: i32) -> Result<Self, i32> { in new() argument
|
/DragonOS-0.1.5/kernel/src/filesystem/vfs/ |
D | mount.rs | 107 fn is_mountpoint_root(&self) -> Result<bool, i32> { in is_mountpoint_root() argument 129 fn open(&self, data: &mut FilePrivateData) -> Result<(), i32> { in open() argument 133 fn close(&self, data: &mut FilePrivateData) -> Result<(), i32> { in close() argument 143 ) -> Result<Arc<dyn IndexNode>, i32> { in create_with_data() argument 149 fn truncate(&self, len: usize) -> Result<(), i32> { in truncate() argument 159 ) -> Result<usize, i32> { in read_at() argument 169 ) -> Result<usize, i32> { in write_at() argument 176 fn poll(&self) -> Result<super::PollStatus, i32> { in poll() argument 191 fn metadata(&self) -> Result<super::Metadata, i32> { in metadata() argument 196 fn set_metadata(&self, metadata: &super::Metadata) -> Result<(), i32> { in set_metadata() argument [all …]
|
D | core.rs | 102 ) -> Result<(), i32> { in do_migrate() argument 120 fn migrate_virtual_filesystem(new_fs: Arc<dyn FileSystem>) -> Result<(), i32> { in migrate_virtual_filesystem() argument 187 pub fn do_open(path: &str, mode: FileMode) -> Result<i32, i32> { in do_open() argument 250 pub fn do_read(fd: i32, buf: &mut [u8]) -> Result<usize, i32> { in do_read() argument 267 pub fn do_write(fd: i32, buf: &[u8]) -> Result<usize, i32> { in do_write() argument 284 pub fn do_lseek(fd: i32, seek: SeekFrom) -> Result<usize, i32> { in do_lseek() argument 294 pub fn do_mkdir(path: &str, _mode: FileMode) -> Result<u64, i32> { in do_mkdir() argument 323 pub fn do_remove_dir(path: &str) -> Result<u64, i32> { in do_remove_dir() argument 359 pub fn do_unlink_at(path: &str, _mode: FileMode) -> Result<u64, i32> { in do_unlink_at() argument
|
D | mod.rs | 94 fn open(&self, _data: &mut FilePrivateData) -> Result<(), i32> { in open() argument 103 fn close(&self, _data: &mut FilePrivateData) -> Result<(), i32> { in close() argument 123 ) -> Result<usize, i32>; in read_at() argument 140 ) -> Result<usize, i32>; in write_at() argument 145 fn poll(&self) -> Result<PollStatus, i32>; in poll() argument 151 fn metadata(&self) -> Result<Metadata, i32> { in metadata() argument 160 fn set_metadata(&self, _metadata: &Metadata) -> Result<(), i32> { in set_metadata() argument 169 fn resize(&self, _len: usize) -> Result<(), i32> { in resize() argument 187 ) -> Result<Arc<dyn IndexNode>, i32> { in create() argument 207 ) -> Result<Arc<dyn IndexNode>, i32> { in create_with_data() argument [all …]
|
D | file.rs | 99 pub fn new(inode: Arc<dyn IndexNode>, mode: FileMode) -> Result<Self, i32> { in new() argument 121 pub fn read(&mut self, len: usize, buf: &mut [u8]) -> Result<usize, i32> { in read() argument 143 pub fn write(&mut self, len: usize, buf: &[u8]) -> Result<usize, i32> { in write() argument 157 pub fn metadata(&self) -> Result<Metadata, i32> { in metadata() argument 162 pub fn get_entry_name(&self, ino: usize) -> Result<String, i32> { in get_entry_name() argument 169 pub fn lseek(&mut self, origin: SeekFrom) -> Result<usize, i32> { in lseek() argument 199 pub fn readable(&self) -> Result<(), i32> { in readable() argument 210 pub fn writeable(&self) -> Result<(), i32> { in writeable() argument 221 pub fn readdir(&mut self, dirent: &mut Dirent) -> Result<u64, i32> { in readdir() argument
|
/DragonOS-0.1.5/kernel/src/process/ |
D | process.rs | 43 _wake_flags: i32, in process_try_to_wake_up() 114 pub fn init_files(&mut self) -> Result<(), i32> { in init_files() argument 136 ) -> Result<(), i32> { in copy_files() argument 161 pub fn exit_files(&mut self) -> Result<(), i32> { in exit_files() argument 177 pub fn alloc_fd(&mut self, file: File) -> Result<i32, i32> { in alloc_fd() argument 236 pub fn drop_fd(&self, fd: i32) -> Result<(), i32> { in drop_fd() argument 280 ) -> i32 { in process_copy_files() 295 pub extern "C" fn process_exit_files(pcb: &'static mut process_control_block) -> i32 { in process_exit_files()
|
D | fork.rs | 23 pub extern "C" fn process_copy_sighand(clone_flags: u64, pcb: *mut process_control_block) -> i32 { in process_copy_sighand() 82 pub extern "C" fn process_copy_signal(clone_flags: u64, pcb: *mut process_control_block) -> i32 { in process_copy_signal()
|
/DragonOS-0.1.5/kernel/src/filesystem/devfs/ |
D | null_dev.rs | 75 fn open(&self, _data: &mut FilePrivateData) -> Result<(), i32> { in open() argument 79 fn close(&self, _data: &mut FilePrivateData) -> Result<(), i32> { in close() argument 83 fn metadata(&self) -> Result<Metadata, i32> { in metadata() argument 91 fn list(&self) -> Result<Vec<String>, i32> { in list() argument 95 fn set_metadata(&self, metadata: &Metadata) -> Result<(), i32> { in set_metadata() argument 107 fn poll(&self) -> Result<PollStatus, i32> { in poll() argument 120 ) -> Result<usize, i32> { in read_at() argument 139 ) -> Result<usize, i32> { in write_at() argument
|
D | zero_dev.rs | 75 fn open(&self, _data: &mut FilePrivateData) -> Result<(), i32> { in open() argument 79 fn close(&self, _data: &mut FilePrivateData) -> Result<(), i32> { in close() argument 83 fn metadata(&self) -> Result<Metadata, i32> { in metadata() argument 91 fn list(&self) -> Result<Vec<String>, i32> { in list() argument 95 fn set_metadata(&self, metadata: &Metadata) -> Result<(), i32> { in set_metadata() argument 107 fn poll(&self) -> Result<PollStatus, i32> { in poll() argument 120 ) -> Result<usize, i32> { in read_at() argument 139 ) -> Result<usize, i32> { in write_at() argument
|
D | mod.rs | 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() argument 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() argument 346 fn find(&self, name: &str) -> Result<Arc<dyn IndexNode>, i32> { in find() argument [all …]
|
/DragonOS-0.1.5/kernel/src/driver/disk/ahci/ |
D | ahci_inode.rs | 80 fn open(&self, _data: &mut FilePrivateData) -> Result<(), i32> { in open() argument 84 fn close(&self, _data: &mut FilePrivateData) -> Result<(), i32> { in close() argument 88 fn metadata(&self) -> Result<Metadata, i32> { in metadata() argument 96 fn list(&self) -> Result<Vec<String>, i32> { in list() argument 100 fn set_metadata(&self, metadata: &Metadata) -> Result<(), i32> { in set_metadata() argument 112 fn poll(&self) -> Result<PollStatus, i32> { in poll() argument 125 ) -> Result<usize, i32> { in read_at() argument 144 ) -> Result<usize, i32> { in write_at() argument
|
D | ahcidisk.rs | 57 ) -> Result<usize, i32> { in read_at() argument 190 ) -> Result<usize, i32> { in write_at() argument 307 fn sync(&self) -> Result<(), i32> { in sync() argument 319 ) -> Result<Arc<LockedAhciDisk>, i32> { in new() argument 354 pub fn read_mbr_table(&self) -> Result<MbrDiskPartionTable, i32> { in read_mbr_table() argument 407 ) -> Result<usize, i32> { in read_at() argument 421 ) -> Result<usize, i32> { in write_at() argument 425 fn sync(&self) -> Result<(), i32> { in sync() argument
|
/DragonOS-0.1.5/kernel/src/filesystem/ramfs/ |
D | mod.rs | 125 ) -> Result<usize, i32> { in read_at() argument 157 ) -> Result<usize, i32> { in write_at() argument 182 fn poll(&self) -> Result<PollStatus, i32> { in poll() argument 204 fn metadata(&self) -> Result<Metadata, i32> { in metadata() argument 212 fn set_metadata(&self, metadata: &Metadata) -> Result<(), i32> { in set_metadata() argument 224 fn resize(&self, len: usize) -> Result<(), i32> { in resize() argument 240 ) -> Result<Arc<dyn IndexNode>, i32> { in create_with_data() argument 286 fn link(&self, name: &str, other: &Arc<dyn IndexNode>) -> Result<(), i32> { in link() argument 317 fn unlink(&self, name: &str) -> Result<(), i32> { in unlink() argument 340 fn rmdir(&self, name: &str) -> Result<(), i32> { in rmdir() argument [all …]
|
/DragonOS-0.1.5/kernel/src/filesystem/procfs/ |
D | mod.rs | 117 fn open_status(&self, pdata: &mut ProcfsFilePrivateData) -> Result<i64, i32> { in open_status() argument 201 ) -> Result<usize, i32> { in read_status() argument 281 pub fn register_pid(&self, pid: i64) -> Result<(), i32> { in register_pid() argument 303 pub fn unregister_pid(&self, pid: i64) -> Result<(), i32> { in unregister_pid() argument 322 fn open(&self, data: &mut FilePrivateData) -> Result<(), i32> { in open() argument 345 fn close(&self, data: &mut FilePrivateData) -> Result<(), i32> { in close() argument 369 ) -> Result<usize, i32> { in read_at() argument 416 ) -> Result<usize, i32> { in write_at() argument 420 fn poll(&self) -> Result<PollStatus, i32> { in poll() argument 442 fn metadata(&self) -> Result<Metadata, i32> { in metadata() argument [all …]
|
/DragonOS-0.1.5/kernel/src/ipc/ |
D | signal.rs | 110 ) -> Result<i32, i32> { in signal_kill_something_info() argument 125 ) -> Result<i32, i32> { in signal_kill_proc_info() argument 165 ) -> Result<i32, i32> { in signal_send_sig_info() argument 232 ) -> Result<i32, i32> { in send_signal_locked() argument 262 ) -> Result<i32, i32> { in __send_signal_locked() argument 623 ) -> Result<i32, i32> { in handle_signal() argument 641 ) -> Result<i32, i32> { in setup_frame() argument 721 fn copy_siginfo_to_user(to: *mut siginfo, from: &siginfo) -> Result<i32, i32> { in copy_siginfo_to_user() argument 745 fn setup_sigcontext(context: &mut sigcontext, mask: &sigset_t, regs: &pt_regs) -> Result<i32, i32> { in setup_sigcontext() argument 915 ) -> i32 { in do_sigaction()
|
/DragonOS-0.1.5/kernel/src/driver/keyboard/ |
D | ps2_keyboard.rs | 84 ) -> Result<usize, i32> { in read_at() argument 104 ) -> Result<usize, i32> { in write_at() argument 108 fn open(&self, _data: &mut crate::filesystem::vfs::FilePrivateData) -> Result<(), i32> { in open() argument 115 fn close(&self, _data: &mut crate::filesystem::vfs::FilePrivateData) -> Result<(), i32> { in close() argument 122 fn poll(&self) -> Result<PollStatus, i32> { in poll() argument 128 fn metadata(&self) -> Result<Metadata, i32> { in metadata() argument 132 fn set_metadata(&self, metadata: &Metadata) -> Result<(), i32> { in set_metadata() argument 152 fn list(&self) -> Result<alloc::vec::Vec<alloc::string::String>, i32> { in list() argument
|
/DragonOS-0.1.5/kernel/src/filesystem/fat/ |
D | fs.rs | 125 fn find(&mut self, name: &str) -> Result<Arc<LockedFATInode>, i32> { in find() argument 246 pub fn new(partition: Arc<Partition>) -> Result<Arc<FATFileSystem>, i32> { in new() argument 345 pub fn get_fat_entry(&self, cluster: Cluster) -> Result<FATEntry, i32> { in get_fat_entry() argument 440 pub fn get_fat_entry_raw(&self, cluster: Cluster) -> Result<u64, i32> { in get_fat_entry_raw() argument 541 pub fn allocate_cluster(&self, prev_cluster: Option<Cluster>) -> Result<Cluster, i32> { in allocate_cluster() argument 589 pub fn deallocate_cluster_chain(&self, start_cluster: Cluster) -> Result<(), i32> { in deallocate_cluster_chain() argument 600 pub fn deallocate_cluster(&self, cluster: Cluster) -> Result<(), i32> { in deallocate_cluster() argument 767 pub fn is_shut_bit_ok(&mut self) -> Result<bool, i32> { in is_shut_bit_ok() argument 790 pub fn is_hard_error_bit_ok(&mut self) -> Result<bool, i32> { in is_hard_error_bit_ok() argument 809 pub fn set_shut_bit_ok(&mut self) -> Result<(), i32> { in set_shut_bit_ok() argument [all …]
|
D | entry.rs | 85 pub fn read(&self, fs: &Arc<FATFileSystem>, buf: &mut [u8], offset: u64) -> Result<usize, i32> { in read() argument 162 ) -> Result<usize, i32> { in write() argument 229 fn ensure_len(&mut self, fs: &Arc<FATFileSystem>, offset: u64, len: u64) -> Result<(), i32> { in ensure_len() argument 314 ) -> Result<(), i32> { in zero_range() argument 334 pub fn truncate(&mut self, fs: &Arc<FATFileSystem>, new_size: u64) -> Result<(), i32> { in truncate() argument 403 ) -> Result<Option<(Cluster, u64)>, i32> { in find_free_entries() argument 498 ) -> Result<FATDirEntry, i32> { in find_entry() argument 525 pub fn open_file(&self, name: &str, fs: Arc<FATFileSystem>) -> Result<FATFile, i32> { in open_file() argument 531 pub fn open_dir(&self, name: &str, fs: Arc<FATFileSystem>) -> Result<FATDir, i32> { in open_dir() argument 540 pub fn create_file(&self, name: &str, fs: &Arc<FATFileSystem>) -> Result<FATFile, i32> { in create_file() argument [all …]
|
/DragonOS-0.1.5/kernel/src/arch/x86_64/asm/ |
D | bitops.rs | 9 pub fn ffz(x: u64) -> i32 { in ffz()
|
/DragonOS-0.1.5/kernel/src/io/ |
D | device.rs | 35 fn read_at(&self, offset: usize, len: usize, buf: &mut [u8]) -> Result<usize, i32>; in read_at() argument 42 fn write_at(&self, offset: usize, len: usize, buf: &[u8]) -> Result<usize, i32>; in write_at() argument 45 fn sync(&self) -> Result<(), i32>; in sync() argument 60 fn read_at(&self, lba_id_start: BlockId, count: usize, buf: &mut [u8]) -> Result<usize, i32>; in read_at() argument 69 fn write_at(&self, lba_id_start: BlockId, count: usize, buf: &[u8]) -> Result<usize, i32>; in write_at() argument 72 fn sync(&self) -> Result<(), i32>; in sync() argument 99 fn read_at(&self, offset: usize, len: usize, buf: &mut [u8]) -> Result<usize, i32> { in read_at() argument 135 fn write_at(&self, offset: usize, len: usize, buf: &[u8]) -> Result<usize, i32> { in write_at() argument 171 fn sync(&self) -> Result<(), i32> { in sync() argument
|
/DragonOS-0.1.5/kernel/src/mm/ |
D | mmio_buddy.rs | 77 fn give_back_block(&self, vaddr: u64, exp: u32) -> Result<i32, i32> { in give_back_block() argument 450 ) -> Result<i32, i32> { in create_mmio() argument 557 pub fn release_mmio(&self, vaddr: u64, length: u64) -> Result<i32, i32> { in release_mmio() argument 699 ) -> i32 { in mmio_create() 717 pub extern "C" fn mmio_release(vaddr: u64, length: u64) -> i32 { in mmio_release()
|
/DragonOS-0.1.5/kernel/src/driver/timers/rtc/ |
D | rtc.rs | 33 pub fn get(&mut self) -> Result<i32, i32> { in get() argument
|
/DragonOS-0.1.5/kernel/src/driver/virtio/ |
D | virtio_impl.rs | 33 fn dma_dealloc(paddr: PhysAddr, pages: usize) -> i32 { in dma_dealloc()
|