/DragonOS-0.1.5/kernel/src/mm/ |
D | allocator.rs | 8 unsafe fn local_alloc(&self, layout: Layout, gfp: gfp_t) -> *mut u8; in local_alloc() 9 unsafe fn local_alloc_zeroed(&self, layout: Layout, gfp: gfp_t) -> *mut u8; in local_alloc_zeroed() 10 unsafe fn local_dealloc(&self, ptr: *mut u8, layout: Layout); in local_dealloc() 17 unsafe fn local_alloc(&self, layout: Layout, gfp: gfp_t) -> *mut u8 { in local_alloc() 24 unsafe fn local_alloc_zeroed(&self, layout: Layout, gfp: gfp_t) -> *mut u8 { in local_alloc_zeroed() 31 unsafe fn local_dealloc(&self, ptr: *mut u8, layout: Layout) { in local_dealloc() 38 unsafe fn alloc(&self, layout: Layout) -> *mut u8 { in alloc() 42 unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8 { in alloc_zeroed() 46 unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) { in dealloc()
|
D | mmio_buddy.rs | 60 fn create_region(&self, vaddr: u64) -> Box<MmioBuddyAddrRegion> { in create_region() 77 fn give_back_block(&self, vaddr: u64, exp: u32) -> Result<i32, i32> { in give_back_block() 98 &self, in split_block() 122 &self, in query_addr_region() 261 &self, in mmio_buddy_query_addr_region() 280 &self, in push_block() 290 fn calculate_block_vaddr(&self, vaddr: u64, exp: u32) -> u64 { in calculate_block_vaddr() 307 &self, in pop_buddy_block() 341 &self, in pop_block() 365 &self, in merge_all_exp() [all …]
|
/DragonOS-0.1.5/kernel/src/libs/ |
D | wait_queue.rs | 43 pub fn sleep(&self) { in sleep() 52 pub fn sleep_uninterruptible(&self) { in sleep_uninterruptible() 62 pub fn sleep_unlock_spinlock<T>(&self, to_unlock: SpinLockGuard<T>) { in sleep_unlock_spinlock() 73 pub fn sleep_unlock_mutex<T>(&self, to_unlock: MutexGuard<T>) { in sleep_unlock_mutex() 84 pub fn sleep_uninterruptible_unlock_spinlock<T>(&self, to_unlock: SpinLockGuard<T>) { in sleep_uninterruptible_unlock_spinlock() 95 pub fn sleep_uninterruptible_unlock_mutex<T>(&self, to_unlock: MutexGuard<T>) { in sleep_uninterruptible_unlock_mutex() 111 pub fn wakeup(&self, state: u64) -> bool { in wakeup()
|
D | spinlock.rs | 74 pub fn lock(&self) { in lock() 79 pub fn lock_irq(&self) { in lock_irq() 104 pub fn unlock(&self) { in unlock() 111 pub fn unlock_irq(&self) { in unlock_irq() 126 pub unsafe fn set_value(&mut self, value: bool) { in set_value() 131 pub fn lock_irqsave(&self, flags: &mut u64) { in lock_irqsave() 137 pub fn unlock_irqrestore(&self, flags: &u64) { in unlock_irqrestore() 197 fn drop(&mut self) { in drop()
|
D | vec_cursor.rs | 104 pub fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), i32> { in read_exact() 116 pub fn read_u16_into(&mut self, buf: &mut [u16]) -> Result<(), i32> { in read_u16_into() 134 pub fn seek(&mut self, origin: SeekFrom) -> Result<usize, i32> { in seek() 160 pub fn write_u8(&mut self, value: u8) -> Result<u8, i32> { in write_u8() 172 pub fn write_u16(&mut self, value: u16) -> Result<u16, i32> { in write_u16() 186 pub fn write_u32(&mut self, value: u32) -> Result<u32, i32> { in write_u32() 200 pub fn write_u64(&mut self, value: u64) -> Result<u64, i32> { in write_u64() 219 pub fn write_exact(&mut self, buf: &[u8]) -> Result<(), i32> { in write_exact()
|
D | semaphore.rs | 34 fn down(&self) { in down() 44 fn up(&self) { in up()
|
D | printk.rs | 98 pub fn __write_string(&mut self, s: &str) { in __write_string() 105 pub fn __write_string_color(&self, fr_color: u32, bk_color: u32, s: &str) { in __write_string_color() 115 pub fn __utf8_to_ascii(&self, s: &str) -> Vec<u8> { in __utf8_to_ascii() 132 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str()
|
D | mutex.rs | 105 fn __sleep(&self) { in __sleep() 114 fn unlock(&self) { in unlock() 135 fn check_pid_in_wait_list(&self, inner: &MutexInner, pid: pid_t) -> bool { in check_pid_in_wait_list() 166 fn drop(&mut self) { in drop()
|
/DragonOS-0.1.5/kernel/src/filesystem/vfs/ |
D | mount.rs | 129 fn open(&self, data: &mut FilePrivateData) -> Result<(), i32> { in open() 133 fn close(&self, data: &mut FilePrivateData) -> Result<(), i32> { in close() 138 &self, in create_with_data() 149 fn truncate(&self, len: usize) -> Result<(), i32> { in truncate() 154 &self, in read_at() 164 &self, in write_at() 196 fn set_metadata(&self, metadata: &super::Metadata) -> Result<(), i32> { in set_metadata() 201 fn resize(&self, len: usize) -> Result<(), i32> { in resize() 207 &self, in create() 220 fn link(&self, name: &str, other: &Arc<dyn IndexNode>) -> Result<(), i32> { in link() [all …]
|
D | mod.rs | 94 fn open(&self, _data: &mut FilePrivateData) -> Result<(), i32> { in open() 103 fn close(&self, _data: &mut FilePrivateData) -> Result<(), i32> { in close() 118 &self, in read_at() 135 &self, in write_at() 160 fn set_metadata(&self, _metadata: &Metadata) -> Result<(), i32> { in set_metadata() 169 fn resize(&self, _len: usize) -> Result<(), i32> { in resize() 183 &self, in create() 202 &self, in create_with_data() 219 fn link(&self, _name: &str, _other: &Arc<dyn IndexNode>) -> Result<(), i32> { in link() 230 fn unlink(&self, _name: &str) -> Result<(), i32> { in unlink() [all …]
|
D | file.rs | 121 pub fn read(&mut self, len: usize, buf: &mut [u8]) -> Result<usize, i32> { in read() 143 pub fn write(&mut self, len: usize, buf: &[u8]) -> Result<usize, i32> { in write() 162 pub fn get_entry_name(&self, ino: usize) -> Result<String, i32> { in get_entry_name() 169 pub fn lseek(&mut self, origin: SeekFrom) -> Result<usize, i32> { in lseek() 221 pub fn readdir(&mut self, dirent: &mut Dirent) -> Result<u64, i32> { in readdir() 269 fn drop(&mut self) { in drop()
|
/DragonOS-0.1.5/kernel/src/exception/ |
D | softirq.rs | 150 pub fn set_softirq_pending(&mut self, softirq_num: u32) { in set_softirq_pending() 155 pub fn set_softirq_running(&mut self, softirq_num: u32) { in set_softirq_running() 160 pub fn clear_softirq_running(&mut self, softirq_num: u32) { in clear_softirq_running() 166 pub fn clear_softirq_pending(&mut self, softirq_num: u32) { in clear_softirq_pending() 173 pub fn is_running(&mut self, softirq_num: u32) -> bool { in is_running() 180 pub fn is_pending(&mut self, softirq_num: u32) -> bool { in is_pending() 189 &mut self, in register_softirq() 210 pub fn unregister_softirq(&mut self, irq_num: u32) -> i32 { in unregister_softirq() 236 pub fn do_softirq(&mut self) { in do_softirq()
|
/DragonOS-0.1.5/kernel/src/sched/ |
D | rt.rs | 54 pub fn enqueue(&mut self, pcb: &'static mut process_control_block) { in enqueue() 80 pub fn enqueue_front(&mut self, pcb: &'static mut process_control_block) { in enqueue_front() 132 pub fn pick_next_task_rt(&mut self, cpu_id: u32) -> Option<&'static mut process_control_block> { in pick_next_task_rt() 146 pub fn get_rt_queue_len(&mut self, cpu_id: u32) -> usize { in get_rt_queue_len() 154 pub fn get_load_list_len(&mut self, cpu_id: u32) -> usize { in get_load_list_len() 158 pub fn enqueue_front(&mut self, pcb: &'static mut process_control_block) { in enqueue_front() 211 fn enqueue(&mut self, pcb: &'static mut process_control_block) { in enqueue()
|
D | cfs.rs | 62 pub fn sort(&mut self) { in sort() 68 pub fn enqueue(&mut self, pcb: &'static mut process_control_block) { in enqueue() 147 pub fn timer_update_jiffies(&mut self) { in timer_update_jiffies() 165 pub fn enqueue_reset_vruntime(&mut self, pcb: &'static mut process_control_block) { in enqueue_reset_vruntime() 175 pub fn set_cpu_idle(&mut self, cpu_id: usize, pcb: *mut process_control_block) { in set_cpu_idle() 180 pub fn get_cfs_queue_len(&mut self, cpu_id: u32) -> usize { in get_cfs_queue_len() 232 fn enqueue(&mut self, pcb: &'static mut process_control_block) { in enqueue()
|
/DragonOS-0.1.5/kernel/src/filesystem/devfs/ |
D | mod.rs | 81 fn register_bultinin_device(&self) { in register_bultinin_device() 97 pub fn register_device<T: DeviceINode>(&self, name: &str, device: Arc<T>) -> Result<(), i32> { in register_device() 138 pub fn unregister_device<T: DeviceINode>(&self, name: &str, device: Arc<T>) -> Result<(), i32> { in unregister_device() 233 pub fn add_dir(&self, name: &str) -> Result<(), i32> { in add_dir() 250 pub fn add_dev(&self, name: &str, dev: Arc<dyn IndexNode>) -> Result<(), i32> { in add_dev() 261 pub fn remove(&self, name: &str) -> Result<(), i32> { in remove() 273 fn do_create_with_data(&self, mut guard: SpinLockGuard<DevFSInode>,_name: &str, in do_create_with_data() 325 fn open(&self, _data: &mut super::vfs::FilePrivateData) -> Result<(), i32> { in open() 329 fn close(&self, _data: &mut super::vfs::FilePrivateData) -> Result<(), i32> { in close() 334 &self, in create_with_data() [all …]
|
D | null_dev.rs | 65 fn set_fs(&self, fs: Weak<DevFS>) { in set_fs() 75 fn open(&self, _data: &mut FilePrivateData) -> Result<(), i32> { in open() 79 fn close(&self, _data: &mut FilePrivateData) -> Result<(), i32> { in close() 95 fn set_metadata(&self, metadata: &Metadata) -> Result<(), i32> { in set_metadata() 115 &self, in read_at() 134 &self, in write_at()
|
D | zero_dev.rs | 65 fn set_fs(&self, fs: Weak<DevFS>) { in set_fs() 75 fn open(&self, _data: &mut FilePrivateData) -> Result<(), i32> { in open() 79 fn close(&self, _data: &mut FilePrivateData) -> Result<(), i32> { in close() 95 fn set_metadata(&self, metadata: &Metadata) -> Result<(), i32> { in set_metadata() 115 &self, in read_at() 134 &self, in write_at()
|
/DragonOS-0.1.5/kernel/src/filesystem/fat/ |
D | fs.rs | 47 fn partial_cmp(&self, other: &Self) -> Option<core::cmp::Ordering> { in partial_cmp() 54 fn eq(&self, other: &Self) -> bool { in eq() 109 pub fn update_metadata(&mut self) { in update_metadata() 125 fn find(&mut self, name: &str) -> Result<Arc<LockedFATInode>, i32> { in find() 345 pub fn get_fat_entry(&self, cluster: Cluster) -> Result<FATEntry, i32> { in get_fat_entry() 440 pub fn get_fat_entry_raw(&self, cluster: Cluster) -> Result<u64, i32> { in get_fat_entry_raw() 523 pub fn cluster_bytes_offset(&self, cluster: Cluster) -> u64 { in cluster_bytes_offset() 541 pub fn allocate_cluster(&self, prev_cluster: Option<Cluster>) -> Result<Cluster, i32> { in allocate_cluster() 589 pub fn deallocate_cluster_chain(&self, start_cluster: Cluster) -> Result<(), i32> { in deallocate_cluster_chain() 600 pub fn deallocate_cluster(&self, cluster: Cluster) -> Result<(), i32> { in deallocate_cluster() [all …]
|
D | entry.rs | 74 pub fn set_size(&mut self, size: u32) { in set_size() 85 pub fn read(&self, fs: &Arc<FATFileSystem>, buf: &mut [u8], offset: u64) -> Result<usize, i32> { in read() 158 &mut self, in write() 229 fn ensure_len(&mut self, fs: &Arc<FATFileSystem>, offset: u64, len: u64) -> Result<(), i32> { in ensure_len() 310 &self, in zero_range() 334 pub fn truncate(&mut self, fs: &Arc<FATFileSystem>, new_size: u64) -> Result<(), i32> { in truncate() 372 pub fn to_iter(&self, fs: Arc<FATFileSystem>) -> FATDirIter { in to_iter() 388 pub fn size(&self, fs: &Arc<FATFileSystem>) -> u64 { in size() 400 &self, in find_free_entries() 493 &self, in find_entry() [all …]
|
/DragonOS-0.1.5/kernel/src/filesystem/ramfs/ |
D | mod.rs | 120 &self, in read_at() 152 &self, in write_at() 212 fn set_metadata(&self, metadata: &Metadata) -> Result<(), i32> { in set_metadata() 224 fn resize(&self, len: usize) -> Result<(), i32> { in resize() 235 &self, in create_with_data() 286 fn link(&self, name: &str, other: &Arc<dyn IndexNode>) -> Result<(), i32> { in link() 317 fn unlink(&self, name: &str) -> Result<(), i32> { in unlink() 340 fn rmdir(&self, name: &str) -> Result<(), i32> { in rmdir() 359 &self, in move_() 377 fn find(&self, name: &str) -> Result<Arc<dyn IndexNode>, i32> { in find() [all …]
|
/DragonOS-0.1.5/kernel/src/driver/disk/ahci/ |
D | ahci_inode.rs | 70 fn set_fs(&self, fs: Weak<DevFS>) { in set_fs() 80 fn open(&self, _data: &mut FilePrivateData) -> Result<(), i32> { in open() 84 fn close(&self, _data: &mut FilePrivateData) -> Result<(), i32> { in close() 100 fn set_metadata(&self, metadata: &Metadata) -> Result<(), i32> { in set_metadata() 120 &self, in read_at() 139 &self, in write_at()
|
/DragonOS-0.1.5/kernel/src/filesystem/procfs/ |
D | mod.rs | 109 fn trim_string(&self, data: &mut Vec<u8>) { in trim_string() 117 fn open_status(&self, pdata: &mut ProcfsFilePrivateData) -> Result<i64, i32> { in open_status() 196 &self, in read_status() 281 pub fn register_pid(&self, pid: i64) -> Result<(), i32> { in register_pid() 303 pub fn unregister_pid(&self, pid: i64) -> Result<(), i32> { in unregister_pid() 322 fn open(&self, data: &mut FilePrivateData) -> Result<(), i32> { in open() 345 fn close(&self, data: &mut FilePrivateData) -> Result<(), i32> { in close() 364 &self, in read_at() 411 &self, in write_at() 449 fn set_metadata(&self, metadata: &Metadata) -> Result<(), i32> { in set_metadata() [all …]
|
/DragonOS-0.1.5/kernel/src/driver/keyboard/ |
D | ps2_keyboard.rs | 64 fn set_fs(&self, fs: Weak<DevFS>) { in set_fs() 79 &self, in read_at() 99 &self, in write_at() 108 fn open(&self, _data: &mut crate::filesystem::vfs::FilePrivateData) -> Result<(), i32> { in open() 115 fn close(&self, _data: &mut crate::filesystem::vfs::FilePrivateData) -> Result<(), i32> { in close() 132 fn set_metadata(&self, metadata: &Metadata) -> Result<(), i32> { in set_metadata()
|
/DragonOS-0.1.5/kernel/src/process/ |
D | process.rs | 133 &mut self, in copy_files() 177 pub fn alloc_fd(&mut self, file: File) -> Result<i32, i32> { in alloc_fd() 211 pub fn get_file_mut_by_fd(&self, fd: i32) -> Option<&mut File> { in get_file_mut_by_fd() 225 pub fn get_file_ref_by_fd(&self, fd: i32) -> Option<&File> { in get_file_ref_by_fd() 236 pub fn drop_fd(&self, fd: i32) -> Result<(), i32> { in drop_fd()
|
/DragonOS-0.1.5/kernel/src/driver/virtio/ |
D | volatile.rs | 51 unsafe fn vwrite(self, value: T); in vwrite() argument 55 unsafe fn vwrite(self, value: T) { in vwrite() argument 61 unsafe fn vwrite(self, value: T) { in vwrite() argument
|