/DragonOS-0.1.9/kernel/src/mm/ |
D | c_adapter.rs | 28 pub unsafe extern "C" fn rs_pseudo_map_phys(vaddr: usize, paddr: usize, size: usize) { in rs_pseudo_map_phys() 37 pub unsafe extern "C" fn rs_map_phys(vaddr: usize, paddr: usize, size: usize, flags: usize) { in rs_map_phys() 66 pub unsafe extern "C" fn kzalloc(size: usize, _gfp: gfp_t) -> usize { in kzalloc() 72 pub unsafe extern "C" fn kmalloc(size: usize, _gfp: gfp_t) -> usize { in kmalloc() 78 fn do_kmalloc(size: usize, _zero: bool) -> usize { in do_kmalloc() 107 pub unsafe extern "C" fn kfree(vaddr: usize) -> usize { in kfree()
|
D | syscall.rs | 209 len: usize, in mmap() 210 prot_flags: usize, in mmap() 211 map_flags: usize, in mmap() 213 _offset: usize, in mmap() 214 ) -> Result<usize, SystemError> { in mmap() 265 old_len: usize, in mremap() 266 new_len: usize, in mremap() 269 ) -> Result<usize, SystemError> { in mremap() 346 pub fn munmap(start_vaddr: VirtAddr, len: usize) -> Result<usize, SystemError> { in munmap() 378 len: usize, in mprotect() [all …]
|
/DragonOS-0.1.9/kernel/crates/bitmap/src/ |
D | bitmap_core.rs | 18 pub(crate) fn get(&self, n: usize, data: &[T], index: usize) -> Option<bool> { in get() 33 pub(crate) fn set(&self, n: usize, data: &mut [T], index: usize, value: bool) -> Option<bool> { in set() 46 pub(crate) fn set_all(&self, n: usize, data: &mut [T], value: bool) { in set_all() 61 pub(crate) fn first_index(&self, data: &[T]) -> Option<usize> { in first_index() 73 pub(crate) fn first_false_index(&self, n: usize, data: &[T]) -> Option<usize> { in first_false_index() 84 pub(crate) fn last_index(&self, n: usize, data: &[T]) -> Option<usize> { in last_index() 100 pub(crate) fn last_false_index(&self, n: usize, data: &[T]) -> Option<usize> { in last_false_index() 126 pub(crate) fn next_index(&self, n: usize, data: &[T], index: usize) -> Option<usize> { in next_index() 149 pub(crate) fn next_false_index(&self, n: usize, data: &[T], index: usize) -> Option<usize> { in next_false_index() 172 pub(crate) fn prev_index(&self, n: usize, data: &[T], index: usize) -> Option<usize> { in prev_index() [all …]
|
D | traits.rs | 8 fn set(bits: &mut Self, index: usize, value: bool) -> bool; in set() 10 fn len(bits: &Self) -> usize; in len() 11 fn first_index(bits: &Self) -> Option<usize>; in first_index() 12 fn first_false_index(bits: &Self) -> Option<usize>; in first_false_index() 13 fn last_index(bits: &Self) -> Option<usize>; in last_index() 14 fn last_false_index(bits: &Self) -> Option<usize>; in last_false_index() 15 fn next_index(bits: &Self, index: usize) -> Option<usize>; in next_index() 16 fn next_false_index(bits: &Self, index: usize) -> Option<usize>; in next_false_index() 17 fn prev_index(bits: &Self, index: usize) -> Option<usize>; in prev_index() 18 fn prev_false_index(bits: &Self, index: usize) -> Option<usize>; in prev_false_index() [all …]
|
D | static_bitmap.rs | 40 fn set(&mut self, index: usize, value: bool) -> Option<bool> { in set() 45 fn len(&self) -> usize { in len() 50 fn size(&self) -> usize { in size() 55 fn first_index(&self) -> Option<usize> { in first_index() 60 fn first_false_index(&self) -> Option<usize> { in first_false_index() 65 fn last_index(&self) -> Option<usize> { in last_index() 70 fn last_false_index(&self) -> Option<usize> { in last_false_index() 75 fn next_index(&self, index: usize) -> Option<usize> { in next_index() 80 fn next_false_index(&self, index: usize) -> Option<usize> { in next_false_index() 85 fn prev_index(&self, index: usize) -> Option<usize> { in prev_index() [all …]
|
D | alloc_bitmap.rs | 30 fn set(&mut self, index: usize, value: bool) -> Option<bool> { in set() 35 fn len(&self) -> usize { in len() 40 fn size(&self) -> usize { in size() 45 fn first_index(&self) -> Option<usize> { in first_index() 50 fn first_false_index(&self) -> Option<usize> { in first_false_index() 55 fn last_index(&self) -> Option<usize> { in last_index() 60 fn last_false_index(&self) -> Option<usize> { in last_false_index() 65 fn next_index(&self, index: usize) -> Option<usize> { in next_index() 70 fn next_false_index(&self, index: usize) -> Option<usize> { in next_false_index() 75 fn prev_index(&self, index: usize) -> Option<usize> { in prev_index() [all …]
|
/DragonOS-0.1.9/kernel/src/driver/tty/ |
D | console.rs | 26 sy: usize, in con_clear() 27 sx: usize, in con_clear() 28 height: usize, in con_clear() 29 width: usize, in con_clear() 57 count: usize, in con_putcs() 68 _pos: usize, in con_getxy() 69 ) -> Result<(usize, usize, usize), SystemError> { in con_getxy() argument 120 top: usize, in con_scroll() 121 bottom: usize, in con_scroll() 123 nr: usize, in con_scroll()
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/init/ |
D | mod.rs | 48 MMArch::phys_2_virt(PhysAddr::new(&GDT_Table as *const usize as usize)).unwrap(); in kernel_main() constant 50 MMArch::phys_2_virt(PhysAddr::new(&IDT_Table as *const usize as usize)).unwrap(); in kernel_main() constant 51 gdtp.base = gdt_vaddr.data() as *const usize; in kernel_main() constant 55 idtp.base = idt_vaddr.data() as *const usize; in kernel_main() constant 75 MMArch::phys_2_virt(PhysAddr::new(&GDT_Table as *const usize as usize)).unwrap(); in early_setup_arch() constant 77 MMArch::phys_2_virt(PhysAddr::new(&IDT_Table as *const usize as usize)).unwrap(); in early_setup_arch() constant 112 fn set_current_core_tss(stack_start: usize, ist0: usize) { in set_current_core_tss()
|
/DragonOS-0.1.9/kernel/src/driver/base/block/ |
D | block_device.rs | 61 pub fn new(start_addr: usize, end_addr: usize, blk_size_log2: u8) -> BlockIter { in new() 69 pub fn new_multiblock(start_addr: usize, end_addr: usize, blk_size_log2: u8) -> BlockIter { in new_multiblock() 153 pub fn len(&self) -> usize { in len() 166 pub fn origin_begin(&self) -> usize { in origin_begin() 170 pub fn origin_end(&self) -> usize { in origin_end() 177 pub fn __bytes_to_lba(addr: usize, blk_size: usize) -> BlockId { in __bytes_to_lba() 183 pub fn __lba_to_bytes(lba_id: usize, blk_size: usize) -> BlockId { in __lba_to_bytes() 200 count: usize, in read_at() 202 ) -> Result<usize, SystemError>; in read_at() 214 count: usize, in write_at() [all …]
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/process/ |
D | syscall.rs | 123 pub fn arch_prctl(option: usize, arg2: usize) -> Result<usize, SystemError> { in arch_prctl() 134 option: usize, in do_arch_prctl_64() 135 arg2: usize, in do_arch_prctl_64() 137 ) -> Result<usize, SystemError> { in do_arch_prctl_64() 179 pub fn do_arch_prctl_common(_option: usize, _arg2: usize) -> Result<usize, SystemError> { in do_arch_prctl_common()
|
/DragonOS-0.1.9/kernel/src/mm/allocator/ |
D | slab.rs | 17 pub unsafe fn new(start_addr: usize, slab_size: usize, block_size: usize) -> Slab { in new() 26 pub fn used_blocks(&self) -> usize { in used_blocks() 34 pub fn grow(&mut self, start_addr: usize, slab_size: usize) { in grow() 66 unsafe fn new(start_addr: usize, block_size: usize, num_of_blocks: usize) -> FreeBlockList { in new() 80 fn len(&self) -> usize { in len() 120 fn addr(&self) -> usize { in addr()
|
/DragonOS-0.1.9/kernel/src/libs/ |
D | align.rs | 24 const fn max(a: usize, b: usize) -> usize { in max() 129 pub const fn page_align_up(addr: usize) -> usize { in page_align_up() 134 pub const fn page_align_down(addr: usize) -> usize { in page_align_down() 139 pub const fn align_up(addr: usize, align: usize) -> usize { in align_up() 144 pub const fn align_down(addr: usize, align: usize) -> usize { in align_down() 160 pub fn check_aligned(value: usize, align: usize) -> bool { in check_aligned()
|
/DragonOS-0.1.9/kernel/src/filesystem/procfs/ |
D | kmsg.rs | 59 pub fn read(&mut self, buf: &mut [u8]) -> Result<usize, SystemError> { in read() 69 fn read_all(&mut self, buf: &mut [u8]) -> Result<usize, SystemError> { in read_all() 80 fn read_level(&mut self, buf: &mut [u8]) -> Result<usize, SystemError> { in read_level() 102 pub fn read_clear(&mut self, buf: &mut [u8]) -> Result<usize, SystemError> { in read_clear() 110 pub fn clear(&mut self) -> Result<usize, SystemError> { in clear() 118 pub fn set_level(&mut self, log_level: usize) -> Result<usize, SystemError> { in set_level() 138 fn tobytes(&mut self) -> usize { in tobytes() 155 pub fn data_size(&mut self) -> Result<usize, SystemError> { in data_size()
|
/DragonOS-0.1.9/kernel/src/driver/tty/tty_ldisc/ |
D | mod.rs | 32 len: usize, in read() 34 offset: usize, in read() 36 ) -> Result<usize, SystemError>; in read() 41 len: usize, in write() 43 ) -> Result<usize, SystemError>; in write() 44 fn ioctl(&self, tty: Arc<TtyCore>, cmd: u32, arg: usize) -> Result<usize, SystemError>; in ioctl() 51 fn poll(&self, tty: Arc<TtyCore>) -> Result<usize, SystemError>; in poll() 60 count: usize, in receive_buf() 61 ) -> Result<usize, SystemError>; in receive_buf() 69 count: usize, in receive_buf2() [all …]
|
/DragonOS-0.1.9/kernel/src/net/ |
D | syscall.rs | 36 address_family: usize, in socket() 37 socket_type: usize, in socket() 38 protocol: usize, in socket() 39 ) -> Result<usize, SystemError> { in socket() 69 address_family: usize, in socketpair() 70 socket_type: usize, in socketpair() 71 protocol: usize, in socketpair() 73 ) -> Result<usize, SystemError> { in socketpair() 110 fd: usize, in setsockopt() 111 level: usize, in setsockopt() [all …]
|
/DragonOS-0.1.9/kernel/src/net/event_poll/ |
D | syscall.rs | 18 pub fn epoll_create(max_size: i32) -> Result<usize, SystemError> { in epoll_create() 26 pub fn epoll_create1(flag: usize) -> Result<usize, SystemError> { in epoll_create1() 38 ) -> Result<usize, SystemError> { in epoll_wait() 66 pub fn epoll_ctl(epfd: i32, op: usize, fd: i32, event: VirtAddr) -> Result<usize, SystemError> { in epoll_ctl() 97 ) -> Result<usize, SystemError> { in epoll_pwait()
|
/DragonOS-0.1.9/kernel/src/filesystem/vfs/ |
D | syscall.rs | 255 ) -> Result<usize, SystemError> { in open() 265 ) -> Result<usize, SystemError> { in openat() 274 pub fn close(fd: usize) -> Result<usize, SystemError> { in close() 290 pub fn ioctl(fd: usize, cmd: u32, data: usize) -> Result<usize, SystemError> { in ioctl() 312 pub fn read(fd: i32, buf: &mut [u8]) -> Result<usize, SystemError> { in read() 334 pub fn write(fd: i32, buf: &[u8]) -> Result<usize, SystemError> { in write() 354 pub fn lseek(fd: i32, seek: SeekFrom) -> Result<usize, SystemError> { in lseek() 373 pub fn pread(fd: i32, buf: &mut [u8], len: usize, offset: usize) -> Result<usize, SystemError> { in pread() 395 pub fn pwrite(fd: i32, buf: &[u8], len: usize, offset: usize) -> Result<usize, SystemError> { in pwrite() 432 pub fn chdir(dest_path: &str) -> Result<usize, SystemError> { in chdir() [all …]
|
/DragonOS-0.1.9/kernel/src/syscall/ |
D | user_access.rs | 28 pub unsafe fn clear_user(dest: VirtAddr, len: usize) -> Result<usize, SystemError> { in clear_user() 37 pub unsafe fn copy_to_user(dest: VirtAddr, src: &[u8]) -> Result<usize, SystemError> { in copy_to_user() 47 pub unsafe fn copy_from_user(dst: &mut [u8], src: VirtAddr) -> Result<usize, SystemError> { in copy_from_user() 75 max_length: Option<usize>, in check_and_clone_cstr() 166 pub fn new<U>(addr: *const U, len: usize, from_user: bool) -> Result<Self, SystemError> { in new() 175 pub fn size(&self) -> usize { in size() 204 offset: usize, in copy_from_user() 205 ) -> Result<usize, SystemError> { in copy_from_user() 219 offset: usize, in copy_one_from_user() 275 pub fn new<U>(addr: *mut U, len: usize, from_user: bool) -> Result<Self, SystemError> { in new() [all …]
|
/DragonOS-0.1.9/kernel/src/filesystem/sysfs/ |
D | file.rs | 60 pub fn callback_read(&self, buf: &mut [u8], offset: usize) -> Result<usize, SystemError> { in callback_read() 83 pub fn callback_write(&self, buf: &[u8], offset: usize) -> Result<usize, SystemError> { in callback_write() 298 offset: usize, in read() 299 ) -> Result<usize, SystemError> { in read() 307 offset: usize, in write() 308 ) -> Result<usize, SystemError> { in write() 330 offset: usize, in read() 331 ) -> Result<usize, SystemError> { in read() 339 _offset: usize, in write() 340 ) -> Result<usize, SystemError> { in write() [all …]
|
/DragonOS-0.1.9/kernel/src/driver/base/char/ |
D | mod.rs | 27 fn read(&self, len: usize, buf: &mut [u8]) -> Result<usize, SystemError>; in read() 34 fn write(&self, len: usize, buf: &[u8]) -> Result<usize, SystemError>; in write() 48 fn major_to_index(major: Major) -> usize { in major_to_index() 207 range: usize, in cdev_add() 228 pub fn cdev_del(id_table: IdTable, range: usize) { in cdev_del()
|
/DragonOS-0.1.9/kernel/src/filesystem/kernfs/ |
D | callback.rs | 21 offset: usize, in read() 22 ) -> Result<usize, SystemError>; in read() 28 offset: usize, in write() 29 ) -> Result<usize, SystemError>; in write() 68 pub fn callback_read(&self, buf: &mut [u8], offset: usize) -> Result<usize, SystemError> { in callback_read() 76 pub fn callback_write(&self, buf: &[u8], offset: usize) -> Result<usize, SystemError> { in callback_write() 93 pub fn callback_read(&self, buf: &mut [u8], offset: usize) -> Result<usize, SystemError> { in callback_read() 102 pub fn callback_write(&self, buf: &[u8], offset: usize) -> Result<usize, SystemError> { in callback_write()
|
/DragonOS-0.1.9/kernel/src/virt/kvm/ |
D | vcpu_dev.rs | 142 data: usize, in ioctl() 144 ) -> Result<usize, SystemError> { in ioctl() 197 _offset: usize, in read_at() 198 _len: usize, in read_at() 201 ) -> Result<usize, SystemError> { in read_at() 208 _offset: usize, in write_at() 209 _len: usize, in write_at() 212 ) -> Result<usize, SystemError> { in write_at()
|
D | vm_dev.rs | 140 data: usize, in ioctl() 142 ) -> Result<usize, SystemError> { in ioctl() 190 _offset: usize, in read_at() 191 _len: usize, in read_at() 194 ) -> Result<usize, SystemError> { in read_at() 201 _offset: usize, in write_at() 202 _len: usize, in write_at() 205 ) -> Result<usize, SystemError> { in write_at() 210 fn kvm_vm_ioctl_create_vcpu(id: u32) -> Result<usize, SystemError> { in kvm_vm_ioctl_create_vcpu()
|
D | kvm_dev.rs | 134 data: usize, in ioctl() 136 ) -> Result<usize, SystemError> { in ioctl() 158 _offset: usize, in read_at() 159 _len: usize, in read_at() 162 ) -> Result<usize, SystemError> { in read_at() 169 _offset: usize, in write_at() 170 _len: usize, in write_at() 173 ) -> Result<usize, SystemError> { in write_at() 179 pub fn kvm_dev_ioctl_create_vm(_vmtype: usize) -> Result<usize, SystemError> { in kvm_dev_ioctl_create_vm()
|
/DragonOS-0.1.9/kernel/src/process/ |
D | syscall.rs | 33 pub fn fork(frame: &TrapFrame) -> Result<usize, SystemError> { in fork() 37 pub fn vfork(frame: &TrapFrame) -> Result<usize, SystemError> { in vfork() 104 ) -> Result<usize, SystemError> { in wait4() 141 pub fn exit(status: usize) -> ! { in exit() 176 ) -> Result<usize, SystemError> { in clone() 232 pub fn set_tid_address(ptr: usize) -> Result<usize, SystemError> { in set_tid_address() 266 pub fn get_rusage(who: i32, rusage: *mut RUsage) -> Result<usize, SystemError> { in get_rusage() 296 resource: usize, in prlimit64() 299 ) -> Result<usize, SystemError> { in prlimit64()
|