/DragonOS-0.1.9/kernel/src/arch/riscv64/interrupt/ |
D | handle.rs | 9 type ExceptionHandler = fn(&mut TrapFrame) -> Result<(), SystemError>; 67 fn default_handler(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in default_handler() argument 75 fn do_trap_insn_misaligned(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_insn_misaligned() argument 83 fn do_trap_insn_access_fault(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_insn_access_fault() argument 91 fn do_trap_insn_illegal(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_insn_illegal() argument 99 fn do_trap_break(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_break() argument 107 fn do_trap_load_misaligned(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_load_misaligned() argument 115 fn do_trap_load_access_fault(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_load_access_fault() argument 123 fn do_trap_store_misaligned(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_store_misaligned() argument 131 fn do_trap_store_access_fault(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_store_access_fault() argument [all …]
|
/DragonOS-0.1.9/kernel/src/driver/tty/tty_ldisc/ |
D | mod.rs | 16 fn open(&self, tty: Arc<TtyCore>) -> Result<(), SystemError>; in open() argument 17 fn close(&self, tty: Arc<TtyCore>) -> Result<(), SystemError>; in close() argument 18 fn flush_buffer(&self, tty: Arc<TtyCore>) -> Result<(), SystemError>; in flush_buffer() argument 36 ) -> Result<usize, SystemError>; in read() 43 ) -> Result<usize, SystemError>; in write() 44 fn ioctl(&self, tty: Arc<TtyCore>, cmd: u32, arg: usize) -> Result<usize, SystemError>; in ioctl() 49 fn set_termios(&self, tty: Arc<TtyCore>, old: Option<Termios>) -> Result<(), SystemError>; in set_termios() argument 51 fn poll(&self, tty: Arc<TtyCore>) -> Result<usize, SystemError>; in poll() 52 fn hangup(&self, tty: Arc<TtyCore>) -> Result<(), SystemError>; in hangup() argument 61 ) -> Result<usize, SystemError>; in receive_buf() [all …]
|
/DragonOS-0.1.9/kernel/src/driver/tty/ |
D | console.rs | 10 fn con_init(&self, vc_data: &mut VirtualConsoleData, init: bool) -> Result<(), SystemError>; in con_init() argument 13 fn con_deinit(&self) -> Result<(), SystemError>; in con_deinit() argument 30 ) -> Result<(), SystemError>; in con_clear() argument 44 ) -> Result<(), SystemError>; in con_putc() argument 60 ) -> Result<(), SystemError>; in con_putcs() argument 69 ) -> Result<(usize, usize, usize), SystemError> { in con_getxy() 97 ) -> Result<u8, SystemError> { in con_build_attr() 109 ) -> Result<(), SystemError>; in con_set_palette() argument
|
/DragonOS-0.1.9/kernel/src/driver/input/serio/ |
D | serio_driver.rs | 16 fn write_wakeup(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in write_wakeup() argument 34 ) -> Result<(), SystemError>; in interrupt() argument 36 fn connect(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in connect() argument 38 fn reconnect(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in reconnect() argument 40 fn fast_reconnect(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in fast_reconnect() argument 42 fn disconnect(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in disconnect() argument 44 fn cleanup(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in cleanup() argument 66 pub fn register(&self, driver: Arc<dyn SerioDriver>) -> Result<(), SystemError> { in register() argument
|
D | serio_device.rs | 23 fn write(&self, device: &Arc<dyn SerioDevice>, data: u8) -> Result<(), SystemError>; in write() argument 25 fn open(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in open() argument 27 fn close(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in close() argument 29 fn start(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in start() argument 31 fn stop(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in stop() argument 50 pub fn register_port(&self, device: Arc<dyn SerioDevice>) -> Result<(), SystemError> { in register_port() argument 64 pub fn init_port(&self, device: Arc<dyn SerioDevice>) -> Result<(), SystemError> { in init_port() argument
|
/DragonOS-0.1.9/kernel/src/filesystem/vfs/ |
D | mount.rs | 113 fn is_mountpoint_root(&self) -> Result<bool, SystemError> { in is_mountpoint_root() 135 fn open(&self, data: &mut FilePrivateData, mode: &FileMode) -> Result<(), SystemError> { in open() argument 139 fn close(&self, data: &mut FilePrivateData) -> Result<(), SystemError> { in close() argument 149 ) -> Result<Arc<dyn IndexNode>, SystemError> { in create_with_data() 160 fn truncate(&self, len: usize) -> Result<(), SystemError> { in truncate() argument 170 ) -> Result<usize, SystemError> { in read_at() 180 ) -> Result<usize, SystemError> { in write_at() 195 fn metadata(&self) -> Result<super::Metadata, SystemError> { in metadata() 200 fn set_metadata(&self, metadata: &super::Metadata) -> Result<(), SystemError> { in set_metadata() argument 205 fn resize(&self, len: usize) -> Result<(), SystemError> { in resize() argument [all …]
|
D | mod.rs | 123 fn open(&self, _data: &mut FilePrivateData, _mode: &FileMode) -> Result<(), SystemError> { in open() argument 132 fn close(&self, _data: &mut FilePrivateData) -> Result<(), SystemError> { in close() argument 152 ) -> Result<usize, SystemError>; in read_at() 169 ) -> Result<usize, SystemError>; in write_at() 174 fn poll(&self, _private_data: &FilePrivateData) -> Result<usize, SystemError> { in poll() 183 fn metadata(&self) -> Result<Metadata, SystemError> { in metadata() 192 fn set_metadata(&self, _metadata: &Metadata) -> Result<(), SystemError> { in set_metadata() argument 204 fn resize(&self, _len: usize) -> Result<(), SystemError> { in resize() argument 222 ) -> Result<Arc<dyn IndexNode>, SystemError> { in create() 242 ) -> Result<Arc<dyn IndexNode>, SystemError> { in create_with_data() [all …]
|
/DragonOS-0.1.9/kernel/src/driver/base/platform/ |
D | platform_driver.rs | 24 fn probe(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError>; in probe() argument 25 fn remove(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError>; in remove() argument 26 fn shutdown(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError>; in shutdown() argument 27 fn suspend(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError>; in suspend() argument 28 fn resume(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError>; in resume() argument 43 pub fn register(&self, driver: Arc<dyn PlatformDriver>) -> Result<(), SystemError> { in register() argument
|
/DragonOS-0.1.9/kernel/src/driver/serial/ |
D | mod.rs | 34 fn set_divisor(&self, baud: BaudRate) -> Result<(), SystemError>; in set_divisor() argument 36 fn startup(&self) -> Result<(), SystemError>; in startup() argument 38 fn handle_irq(&self) -> Result<(), SystemError>; in handle_irq() argument 58 pub fn register_driver(&self, _driver: &Arc<dyn UartDriver>) -> Result<(), SystemError> { in register_driver() argument 63 pub fn serial_early_init() -> Result<(), SystemError> { in serial_early_init() 68 pub(super) fn serial_init() -> Result<(), SystemError> { in serial_init()
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/kvm/vmx/ |
D | vmx_asm_wrapper.rs | 7 pub fn vmxon(vmxon_pa: u64) -> Result<(), SystemError> { in vmxon() argument 18 pub fn vmxoff() -> Result<(), SystemError> { in vmxoff() 26 pub fn vmx_vmwrite(vmcs_field: u32, value: u64) -> Result<(), SystemError> { in vmx_vmwrite() argument 38 pub fn vmx_vmread(vmcs_field: u32) -> Result<u64, SystemError> { in vmx_vmread() 48 pub fn vmx_vmptrld(vmcs_pa: u64) -> Result<(), SystemError> { in vmx_vmptrld() argument 55 pub fn vmx_vmlaunch() -> Result<(), SystemError> { in vmx_vmlaunch() 91 pub fn vmx_vmclear(vmcs_pa: u64) -> Result<(), SystemError> { in vmx_vmclear() argument
|
D | mmu.rs | 64 pub set_eptp: Option<fn(u64) -> Result<(), SystemError>>, 71 ) -> Result<(), SystemError>, 83 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() argument 97 fn tdp_set_eptp(root_hpa: u64) -> Result<(), SystemError> { in tdp_set_eptp() argument 113 ) -> Result<(), SystemError> { in tdp_page_fault() argument 177 pub fn kvm_vcpu_mtrr_init(_vcpu: &Mutex<VmxVcpu>) -> Result<(), SystemError> { in kvm_vcpu_mtrr_init() argument 218 ) -> Result<u32, SystemError> { in __direct_map() 241 ) -> Result<u64, SystemError> { in mmu_gfn_to_pfn_fast() 248 pub fn mmu_topup_memory_caches(_vcpu: &mut VmxVcpu) -> Result<(), SystemError> { in mmu_topup_memory_caches() argument
|
/DragonOS-0.1.9/kernel/src/filesystem/kernfs/ |
D | callback.rs | 15 fn open(&self, data: KernCallbackData) -> Result<(), SystemError>; in open() argument 22 ) -> Result<usize, SystemError>; in read() 29 ) -> Result<usize, SystemError>; in write() 31 fn poll(&self, data: KernCallbackData) -> Result<PollStatus, SystemError>; in poll() 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/docs/kernel/libs/lib_ui/ |
D | scm.md | 15 fn install(&self) -> Result<i32, SystemError> { 19 fn uninstall(&self) -> Result<i32, SystemError> { 23 fn enable(&self) -> Result<i32, SystemError> { 27 fn disable(&self) -> Result<i32, SystemError> { 31 fn change(&self, _buf: ScmBufferInfo) -> Result<i32, SystemError> { 37 fn metadata(&self) -> Result<ScmUiFrameworkMetadata, SystemError> { 71 pub fn scm_framework_enable(framework: Arc<dyn ScmUiFramework>) -> Result<i32, SystemError> 80 pub fn scm_register(framework: Arc<dyn ScmUiFramework>) -> Result<i32, SystemError>
|
/DragonOS-0.1.9/kernel/src/smp/ |
D | mod.rs | 17 pub fn kick_cpu(cpu_id: ProcessorId) -> Result<(), SystemError> { in kick_cpu() argument 28 fn prepare_cpus() -> Result<(), SystemError>; in prepare_cpus() 33 fn init() -> Result<(), SystemError>; in init() 38 pub fn early_smp_init() -> Result<(), SystemError> { in early_smp_init()
|
/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() 76 ) -> Result<String, SystemError> { in check_and_clone_cstr() 115 pub fn check_and_clone_cstr_array(user: *const *const u8) -> Result<Vec<String>, SystemError> { in check_and_clone_cstr_array() 166 pub fn new<U>(addr: *const U, len: usize, from_user: bool) -> Result<Self, SystemError> { in new() 184 pub fn read_from_user<T>(&self, offset: usize) -> Result<&[T], SystemError> { in read_from_user() 192 pub fn read_one_from_user<T>(&self, offset: usize) -> Result<&T, SystemError> { in read_one_from_user() 205 ) -> Result<usize, SystemError> { in copy_from_user() 220 ) -> Result<(), SystemError> { in copy_one_from_user() argument [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() 109 ) -> Result<(), SystemError> { in create_file() argument 120 ) -> Result<(), SystemError> { in add_file_with_mode() argument 208 ) -> Result<(), SystemError> { in create_bin_file() argument 238 ) -> Result<(), SystemError> { in add_bin_file_with_mode() argument 290 fn open(&self, _data: KernCallbackData) -> Result<(), SystemError> { in open() argument 299 ) -> Result<usize, SystemError> { in read() 308 ) -> Result<usize, SystemError> { in write() 313 fn poll(&self, _data: KernCallbackData) -> Result<PollStatus, SystemError> { in poll() [all …]
|
/DragonOS-0.1.9/kernel/src/libs/ |
D | vec_cursor.rs | 46 pub fn read_u8(&mut self) -> Result<u8, SystemError> { in read_u8() 55 pub fn read_u16(&mut self) -> Result<u16, SystemError> { in read_u16() 69 pub fn read_u32(&mut self) -> Result<u32, SystemError> { in read_u32() 83 pub fn read_u64(&mut self) -> Result<u64, SystemError> { in read_u64() 102 pub fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), SystemError> { in read_exact() argument 114 pub fn read_u16_into(&mut self, buf: &mut [u16]) -> Result<(), SystemError> { in read_u16_into() argument 132 pub fn seek(&mut self, origin: SeekFrom) -> Result<usize, SystemError> { in seek() 158 pub fn write_u8(&mut self, value: u8) -> Result<u8, SystemError> { in write_u8() 170 pub fn write_u16(&mut self, value: u16) -> Result<u16, SystemError> { in write_u16() 184 pub fn write_u32(&mut self, value: u32) -> Result<u32, SystemError> { in write_u32() [all …]
|
/DragonOS-0.1.9/kernel/src/driver/video/fbdev/base/ |
D | fbsysfs.rs | 63 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show() 87 fn store(&self, _kobj: Arc<dyn KObject>, _buf: &[u8]) -> Result<usize, SystemError> { in store() 92 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show() 118 fn store(&self, _kobj: Arc<dyn KObject>, _buf: &[u8]) -> Result<usize, SystemError> { in store() 141 fn show(&self, _kobj: Arc<dyn KObject>, _buf: &mut [u8]) -> Result<usize, SystemError> { in show() 146 fn store(&self, _kobj: Arc<dyn KObject>, _buf: &[u8]) -> Result<usize, SystemError> { in store() 168 fn show(&self, _kobj: Arc<dyn KObject>, _buf: &mut [u8]) -> Result<usize, SystemError> { in show() 173 fn store(&self, _kobj: Arc<dyn KObject>, _buf: &[u8]) -> Result<usize, SystemError> { in store() 194 fn show(&self, kobj: Arc<dyn KObject>, buf: &mut [u8]) -> Result<usize, SystemError> { in show() 202 fn store(&self, _kobj: Arc<dyn KObject>, _buf: &[u8]) -> Result<usize, SystemError> { in store() [all …]
|
/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() 55 ) -> Result<(), SystemError> { in execve() argument 77 let r: Result<(String, Vec<String>, Vec<String>), SystemError> = x(); in execve() 104 ) -> Result<usize, SystemError> { in wait4() 146 pub fn getpid() -> Result<Pid, SystemError> { in getpid() 157 pub fn getpgid(mut pid: Pid) -> Result<Pid, SystemError> { in getpgid() 168 pub fn getppid() -> Result<Pid, SystemError> { in getppid() 176 ) -> Result<usize, SystemError> { in clone() 232 pub fn set_tid_address(ptr: usize) -> Result<usize, SystemError> { in set_tid_address() [all …]
|
/DragonOS-0.1.9/kernel/src/arch/riscv64/kvm/ |
D | mod.rs | 8 pub fn kvm_arch_cpu_supports_vm() -> Result<(), SystemError> { in kvm_arch_cpu_supports_vm() 13 pub fn kvm_arch_init() -> Result<(), SystemError> { in kvm_arch_init() 17 pub fn kvm_arch_dev_ioctl(cmd: u32, _arg: usize) -> Result<usize, SystemError> { in kvm_arch_dev_ioctl()
|
/DragonOS-0.1.9/kernel/src/driver/acpi/ |
D | bus.rs | 25 ) -> Result<bool, SystemError> { in driver_match_device() 32 pub(super) fn bus_init(&self) -> Result<(), SystemError> { in bus_init() argument 72 fn remove(&self, _device: &Arc<dyn Device>) -> Result<(), SystemError> { in remove() argument 80 fn resume(&self, _device: &Arc<dyn Device>) -> Result<(), SystemError> { in resume() argument 91 ) -> Result<bool, SystemError> { in match_device() 97 fn probe(&self, _device: &Arc<dyn Device>) -> Result<(), SystemError> { in probe() argument
|
/DragonOS-0.1.9/kernel/crates/unified-init/src/ |
D | main.rs | 30 fn x() -> Result<(), SystemError> { in no_element_ne() 42 fn x() -> Result<(), SystemError> { in one_element() 53 fn x() -> Result<(), SystemError> { in two_elements() 58 fn y() -> Result<(), SystemError> { in two_elements()
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/kvm/ |
D | mod.rs | 32 pub fn kvm_arch_cpu_supports_vm() -> Result<(), SystemError> { in kvm_arch_cpu_supports_vm() 51 pub fn kvm_arch_init() -> Result<(), SystemError> { in kvm_arch_init() 55 pub fn kvm_arch_dev_ioctl(cmd: u32, _arg: usize) -> Result<usize, SystemError> { in kvm_arch_dev_ioctl() 64 pub fn kvm_arch_vcpu_create(id: u32) -> Result<Arc<Mutex<VmxVcpu>>, SystemError> { in kvm_arch_vcpu_create() 70 pub fn kvm_arch_vcpu_setup(vcpu: &Mutex<VmxVcpu>) -> Result<(), SystemError> { in kvm_arch_vcpu_setup() argument 75 pub fn kvm_arch_vcpu_ioctl_run(_vcpu: &Mutex<VmxVcpu>) -> Result<(), SystemError> { in kvm_arch_vcpu_ioctl_run() argument
|
/DragonOS-0.1.9/kernel/src/exception/ |
D | dummychip.rs | 49 fn irq_enable(&self, _irq: &Arc<IrqData>) -> Result<(), SystemError> { in irq_enable() argument 67 fn irq_startup(&self, _irq: &Arc<IrqData>) -> Result<(), SystemError> { in irq_startup() argument 71 fn irq_shutdown(&self, _irq: &Arc<IrqData>) -> Result<(), SystemError> { in irq_shutdown() argument 98 fn irq_enable(&self, _irq: &Arc<IrqData>) -> Result<(), SystemError> { in irq_enable() argument 114 fn irq_startup(&self, _irq: &Arc<IrqData>) -> Result<(), SystemError> { in irq_startup() argument 118 fn irq_shutdown(&self, _irq: &Arc<IrqData>) -> Result<(), SystemError> { in irq_shutdown() argument
|
/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() 37 fn sync(&self) -> Result<(), SystemError>; in sync() argument 56 fn find_dynamic_major() -> Result<Major, SystemError> { in find_dynamic_major() 97 ) -> Result<DeviceNumber, SystemError> { in register_chardev_region() 111 ) -> Result<DeviceNumber, SystemError> { in alloc_chardev_region() 128 ) -> Result<DeviceNumber, SystemError> { in __register_chardev_region() 182 ) -> Result<(), SystemError> { in __unregister_chardev_region() argument 208 ) -> Result<(), SystemError> { in cdev_add() argument
|