/DragonOS/kernel/src/arch/riscv64/interrupt/ |
H A D | handle.rs | 64 fn default_handler(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in default_handler() 72 fn do_trap_insn_misaligned(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_insn_misaligned() 80 fn do_trap_insn_access_fault(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_insn_access_fault() 88 fn do_trap_insn_illegal(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_insn_illegal() 96 fn do_trap_break(trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_break() 103 fn do_trap_load_misaligned(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_load_misaligned() 111 fn do_trap_load_access_fault(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_load_access_fault() 119 fn do_trap_store_misaligned(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_store_misaligned() 127 fn do_trap_store_access_fault(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_store_access_fault() 135 fn do_trap_user_env_call(trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_user_env_call() [all …]
|
/DragonOS/kernel/src/driver/input/serio/ |
H A D | serio_device.rs | 24 fn write(&self, device: &Arc<dyn SerioDevice>, data: u8) -> Result<(), SystemError>; in write() 26 fn open(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in open() 28 fn close(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in close() 30 fn start(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in start() 32 fn stop(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in stop() 51 pub fn register_port(&self, device: Arc<dyn SerioDevice>) -> Result<(), SystemError> { in register_port() 65 pub fn init_port(&self, device: Arc<dyn SerioDevice>) -> Result<(), SystemError> { in init_port()
|
H A D | serio_driver.rs | 17 fn write_wakeup(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in write_wakeup() 35 ) -> Result<(), SystemError>; in interrupt() 37 fn connect(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in connect() 39 fn reconnect(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in reconnect() 41 fn fast_reconnect(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in fast_reconnect() 43 fn disconnect(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in disconnect() 45 fn cleanup(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in cleanup() 67 pub fn register(&self, driver: Arc<dyn SerioDriver>) -> Result<(), SystemError> { in register()
|
/DragonOS/kernel/crates/rbpf/src/ |
H A D | verifier.rs | 25 fn reject<S: AsRef<str>>(msg: S) -> Result<(), Error> { in reject() 30 fn check_prog_len(prog: &[u8]) -> Result<(), Error> { in check_prog_len() 56 fn check_imm_endian(insn: &ebpf::Insn, insn_ptr: usize) -> Result<(), Error> { in check_imm_endian() 65 fn check_load_dw(prog: &[u8], insn_ptr: usize) -> Result<(), Error> { in check_load_dw() 76 fn check_jmp_offset(prog: &[u8], insn_ptr: usize) -> Result<(), Error> { in check_jmp_offset() 99 fn check_registers(insn: &ebpf::Insn, store: bool, insn_ptr: usize) -> Result<(), Error> { in check_registers() 113 pub fn check(prog: &[u8]) -> Result<(), Error> { in check()
|
H A D | lib.rs | 177 pub fn set_program(&mut self, prog: &'a [u8]) -> Result<(), Error> { in set_program() 213 pub fn set_verifier(&mut self, verifier: Verifier) -> Result<(), Error> { in set_verifier() 257 pub fn register_helper(&mut self, key: u32, function: Helper) -> Result<(), Error> { in register_helper() 322 pub fn jit_compile(&mut self) -> Result<(), Error> { in jit_compile() 439 pub fn cranelift_compile(&mut self) -> Result<(), Error> { in cranelift_compile() 672 ) -> Result<(), Error> { in set_program() 712 pub fn set_verifier(&mut self, verifier: Verifier) -> Result<(), Error> { in set_verifier() 764 ) -> Result<(), Error> { in register_helper() 840 pub fn jit_compile(&mut self) -> Result<(), Error> { in jit_compile() 951 pub fn cranelift_compile(&mut self) -> Result<(), Error> { in cranelift_compile() [all …]
|
/DragonOS/kernel/src/driver/pci/ |
H A D | driver.rs | 27 fn probe(&self, device: &Arc<dyn PciDevice>, id: &PciDeviceID) -> Result<(), SystemError>; in probe() 28 fn remove(&self, device: &Arc<dyn PciDevice>) -> Result<(), SystemError>; in remove() 29 fn shutdown(&self, device: &Arc<dyn PciDevice>) -> Result<(), SystemError>; in shutdown() 30 fn suspend(&self, device: &Arc<dyn PciDevice>) -> Result<(), SystemError>; in suspend() 31 fn resume(&self, device: &Arc<dyn PciDevice>) -> Result<(), SystemError>; in resume() 41 fn add_dynid(&mut self, id: PciDeviceID) -> Result<(), SystemError>; in add_dynid() 75 pub fn register(&self, driver: Arc<dyn PciDriver>) -> Result<(), SystemError> { in register()
|
/DragonOS/kernel/src/driver/base/platform/ |
H A D | platform_driver.rs | 25 fn probe(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError>; in probe() 26 fn remove(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError>; in remove() 27 fn shutdown(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError>; in shutdown() 28 fn suspend(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError>; in suspend() 29 fn resume(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError>; in resume() 44 pub fn register(&self, driver: Arc<dyn PlatformDriver>) -> Result<(), SystemError> { in register()
|
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/ |
H A D | vmx_asm_wrapper.rs | 8 pub fn vmxon(vmxon_pa: u64) -> Result<(), SystemError> { in vmxon() 27 pub fn vmx_vmwrite(vmcs_field: u32, value: u64) -> Result<(), SystemError> { in vmx_vmwrite() 49 pub fn vmx_vmptrld(vmcs_pa: u64) -> Result<(), SystemError> { in vmx_vmptrld() 92 pub fn vmx_vmclear(vmcs_pa: u64) -> Result<(), SystemError> { in vmx_vmclear()
|
/DragonOS/kernel/src/driver/tty/pty/ |
H A D | unix98pty.rs | 38 fn install(&self, driver: Arc<TtyDriver>, tty: Arc<TtyCore>) -> Result<(), SystemError> { in install() 42 fn open(&self, tty: &TtyCoreData) -> Result<(), SystemError> { in open() 65 fn flush_buffer(&self, tty: &TtyCoreData) -> Result<(), SystemError> { in flush_buffer() 76 fn ioctl(&self, tty: Arc<TtyCore>, cmd: u32, arg: usize) -> Result<(), SystemError> { in ioctl() 107 fn set_termios(&self, tty: Arc<TtyCore>, old_termios: Termios) -> Result<(), SystemError> { in set_termios() 161 fn start(&self, core: &TtyCoreData) -> Result<(), SystemError> { in start() 179 fn stop(&self, core: &TtyCoreData) -> Result<(), SystemError> { in stop() 217 fn close(&self, tty: Arc<TtyCore>) -> Result<(), SystemError> { in close() 234 ) -> Result<(), SystemError> { in resize() 252 ) -> Result<(), SystemError> { in ptmx_open()
|
H A D | mod.rs | 99 ) -> Result<(), SystemError> { in pty_common_install() 142 pub fn pty_common_open(core: &TtyCoreData) -> Result<(), SystemError> { in pty_common_open() 173 pub fn pty_set_lock(tty: &TtyCoreData, arg: VirtAddr) -> Result<(), SystemError> { in pty_set_lock() 186 pub fn pty_get_lock(tty: &TtyCoreData, arg: VirtAddr) -> Result<(), SystemError> { in pty_get_lock() 193 pub fn pty_set_packet_mode(tty: &TtyCoreData, arg: VirtAddr) -> Result<(), SystemError> { in pty_set_packet_mode() 210 pub fn pty_get_packet_mode(tty: &TtyCoreData, arg: VirtAddr) -> Result<(), SystemError> { in pty_get_packet_mode()
|
/DragonOS/kernel/src/bpf/map/ |
H A D | lru.rs | 44 fn update_elem(&mut self, key: &[u8], value: &[u8], _flags: u64) -> Result<()> { in update_elem() 48 fn delete_elem(&mut self, key: &[u8]) -> Result<()> { in delete_elem() 67 fn lookup_and_delete_elem(&mut self, key: &[u8], value: &mut [u8]) -> Result<()> { in lookup_and_delete_elem() 77 fn get_next_key(&self, key: Option<&[u8]>, next_key: &mut [u8]) -> Result<()> { in get_next_key() 103 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() 127 fn update_elem(&mut self, key: &[u8], value: &[u8], flags: u64) -> Result<()> { in update_elem() 130 fn delete_elem(&mut self, key: &[u8]) -> Result<()> { in delete_elem() 136 fn lookup_and_delete_elem(&mut self, key: &[u8], value: &mut [u8]) -> Result<()> { in lookup_and_delete_elem() 148 fn get_next_key(&self, key: Option<&[u8]>, next_key: &mut [u8]) -> Result<()> { in get_next_key()
|
H A D | array_map.rs | 36 fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result { in fmt() 94 fn update_elem(&mut self, key: &[u8], value: &[u8], _flags: u64) -> Result<()> { in update_elem() 110 fn delete_elem(&mut self, _key: &[u8]) -> Result<()> { in delete_elem() 131 fn lookup_and_delete_elem(&mut self, _key: &[u8], _value: &mut [u8]) -> Result<()> { in lookup_and_delete_elem() 135 fn get_next_key(&self, key: Option<&[u8]>, next_key: &mut [u8]) -> Result<()> { in get_next_key() 152 fn freeze(&self) -> Result<()> { in freeze() 169 fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result { in fmt() 193 fn update_elem(&mut self, key: &[u8], value: &[u8], flags: u64) -> Result<()> { in update_elem() 196 fn delete_elem(&mut self, key: &[u8]) -> Result<()> { in delete_elem() 202 fn lookup_and_delete_elem(&mut self, _key: &[u8], _value: &mut [u8]) -> Result<()> { in lookup_and_delete_elem() [all …]
|
H A D | queue.rs | 20 fn push(&mut self, value: BpfQueueValue, flags: BpfMapUpdateElemFlags) -> Result<()>; in push() 56 fn push(&mut self, value: BpfQueueValue, flags: BpfMapUpdateElemFlags) -> Result<()> { in push() 104 fn push(&mut self, value: BpfQueueValue, flags: BpfMapUpdateElemFlags) -> Result<()> { in push() 130 fn update_elem(&mut self, _key: &[u8], value: &[u8], flags: u64) -> Result<()> { in update_elem() 135 fn lookup_and_delete_elem(&mut self, _key: &[u8], value: &mut [u8]) -> Result<()> { in lookup_and_delete_elem() 143 fn push_elem(&mut self, value: &[u8], flags: u64) -> Result<()> { in push_elem() 146 fn pop_elem(&mut self, value: &mut [u8]) -> Result<()> { in pop_elem() 149 fn peek_elem(&self, value: &mut [u8]) -> Result<()> { in peek_elem()
|
H A D | hash_map.rs | 45 fn update_elem(&mut self, key: &[u8], value: &[u8], flags: u64) -> Result<()> { in update_elem() 50 fn delete_elem(&mut self, key: &[u8]) -> Result<()> { in delete_elem() 69 fn lookup_and_delete_elem(&mut self, key: &[u8], value: &mut [u8]) -> Result<()> { in lookup_and_delete_elem() 79 fn get_next_key(&self, key: Option<&[u8]>, next_key: &mut [u8]) -> Result<()> { in get_next_key() 107 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { in fmt() 129 fn update_elem(&mut self, key: &[u8], value: &[u8], flags: u64) -> Result<()> { in update_elem() 132 fn delete_elem(&mut self, key: &[u8]) -> Result<()> { in delete_elem() 138 fn lookup_and_delete_elem(&mut self, key: &[u8], value: &mut [u8]) -> Result<()> { in lookup_and_delete_elem() 150 fn get_next_key(&self, key: Option<&[u8]>, next_key: &mut [u8]) -> Result<()> { in get_next_key()
|
/DragonOS/kernel/src/libs/ |
H A D | notifier.rs | 33 ) -> Result<(), SystemError> { in register() 65 pub fn unregister(&mut self, block: Arc<dyn NotifierBlock<V, T>>) -> Result<(), SystemError> { in unregister() 119 pub fn register(&mut self, block: Arc<dyn NotifierBlock<V, T>>) -> Result<(), SystemError> { in register() 127 ) -> Result<(), SystemError> { in register_unique_prio() 132 pub fn unregister(&mut self, block: Arc<dyn NotifierBlock<V, T>>) -> Result<(), SystemError> { in unregister() 158 pub fn register(&mut self, block: Arc<dyn NotifierBlock<V, T>>) -> Result<(), SystemError> { in register() 166 ) -> Result<(), SystemError> { in register_unique_prio() 171 pub fn unregister(&mut self, block: Arc<dyn NotifierBlock<V, T>>) -> Result<(), SystemError> { in unregister() 195 pub fn register(&mut self, block: Arc<dyn NotifierBlock<V, T>>) -> Result<(), SystemError> { in register() 199 pub fn unregister(&mut self, block: Arc<dyn NotifierBlock<V, T>>) -> Result<(), SystemError> { in unregister()
|
/DragonOS/kernel/src/filesystem/sysfs/ |
H A D | group.rs | 25 ) -> Result<(), SystemError> { in create_groups() 34 ) -> Result<(), SystemError> { in do_create_groups() 59 ) -> Result<(), SystemError> { in do_create_group() 133 ) -> Result<(), SystemError> { in remove_group() 173 ) -> Result<(), SystemError> { in group_create_files()
|
H A D | symlink.rs | 28 ) -> Result<(), SystemError> { in create_link() 51 ) -> Result<(), SystemError> { in do_create_link() 70 ) -> Result<(), SystemError> { in do_create_link_sd() 101 ) -> Result<(), SystemError> { in create_link_sd()
|
/DragonOS/kernel/src/arch/riscv64/init/ |
H A D | dragonstub.rs | 25 fn init_kernel_cmdline(&self) -> Result<(), SystemError> { in init_kernel_cmdline() 33 ) -> Result<(), SystemError> { in early_init_framebuffer_info() 37 fn early_init_memory_blocks(&self) -> Result<(), SystemError> { in early_init_memory_blocks()
|
/DragonOS/kernel/src/exception/ |
H A D | manage.rs | 69 ) -> Result<(), SystemError> { in request_irq() 117 ) -> Result<(), SystemError> { in request_threaded_irq() 170 ) -> Result<(), SystemError> { in inner_setup_irq() 631 ) -> Result<(), SystemError> { in irq_activate_and_startup() 645 ) -> Result<(), SystemError> { in irq_activate() 662 ) -> Result<(), SystemError> { in irq_startup() 758 ) -> Result<(), SystemError> { in irq_setup_affinity() 794 ) -> Result<(), SystemError> { in irq_set_affinity() 803 ) -> Result<(), SystemError> { in irq_do_set_affinity() 840 ) -> Result<(), SystemError> { in __irq_startup() [all …]
|
/DragonOS/kernel/src/perf/ |
H A D | mod.rs | 37 type Result<T> = core::result::Result<T, SystemError>; typedef 41 fn set_bpf_prog(&self, _bpf_prog: Arc<File>) -> Result<()> { in set_bpf_prog() 45 fn enable(&self) -> Result<()> { in enable() 49 fn disable(&self) -> Result<()> { in disable() 72 ) -> core::result::Result<(), SystemError> { in remove_epoll() 91 fn epoll_callback(&self) -> Result<()> { in epoll_callback() 107 fn mmap(&self, start: usize, len: usize, offset: usize) -> Result<()> { in mmap() 110 fn open(&self, _data: SpinLockGuard<FilePrivateData>, _mode: &FileMode) -> Result<()> { in open() 113 fn close(&self, _data: SpinLockGuard<FilePrivateData>) -> Result<()> { in close() 149 fn resize(&self, _len: usize) -> Result<()> { in resize() [all …]
|
/DragonOS/kernel/src/driver/tty/tty_ldisc/ |
H A D | mod.rs | 16 fn open(&self, tty: Arc<TtyCore>) -> Result<(), SystemError>; in open() 17 fn close(&self, tty: Arc<TtyCore>) -> Result<(), SystemError>; in close() 18 fn flush_buffer(&self, tty: Arc<TtyCore>) -> Result<(), SystemError>; in flush_buffer() 49 fn set_termios(&self, tty: Arc<TtyCore>, old: Option<Termios>) -> Result<(), SystemError>; in set_termios() 52 fn hangup(&self, tty: Arc<TtyCore>) -> Result<(), SystemError>; in hangup() 73 fn write_wakeup(&self, _tty: &TtyCoreData) -> Result<(), SystemError> { in write_wakeup() 102 pub fn ldisc_setup(tty: Arc<TtyCore>, o_tty: Option<Arc<TtyCore>>) -> Result<(), SystemError> { in ldisc_setup()
|
/DragonOS/kernel/src/driver/base/block/ |
H A D | manager.rs | 57 pub fn register(&self, dev: Arc<dyn BlockDevice>) -> Result<(), SystemError> { in register() 75 fn check_partitions(&self, dev: &Arc<dyn BlockDevice>) -> Result<(), SystemError> { in check_partitions() 84 fn check_mbr(&self, dev: &Arc<dyn BlockDevice>) -> Result<(), SystemError> { in check_mbr() 97 ) -> Result<(), SystemError> { in register_entire_disk_as_gendisk() 106 ) -> Result<(), SystemError> { in register_gendisk_with_range() 120 ) -> Result<(), SystemError> { in register_gendisk() 234 fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result { in fmt()
|
/DragonOS/kernel/src/driver/tty/ |
H A D | console.rs | 17 ) -> Result<(), SystemError>; in con_init() 21 fn con_deinit(&self) -> Result<(), SystemError>; in con_deinit() 38 ) -> Result<(), SystemError>; in con_clear() 52 ) -> Result<(), SystemError>; in con_putc() 68 ) -> Result<(), SystemError>; in con_putcs() 118 ) -> Result<(), SystemError>; in con_set_palette()
|
/DragonOS/kernel/src/arch/x86_64/init/pvh/ |
H A D | mod.rs | 42 fn init_kernel_cmdline(&self) -> Result<(), SystemError> { in init_kernel_cmdline() 61 ) -> Result<(), SystemError> { in early_init_framebuffer_info() 65 fn early_init_memory_blocks(&self) -> Result<(), SystemError> { in early_init_memory_blocks() 125 pub(super) fn early_linux32_pvh_init(params_ptr: usize) -> Result<(), SystemError> { in early_linux32_pvh_init()
|
/DragonOS/kernel/src/driver/serial/serial8250/ |
H A D | serial8250_pio.rs | 125 pub fn init(&self) -> Result<(), SystemError> { in init() 169 const fn check_baudrate(&self, baudrate: &BaudRate) -> Result<(), SystemError> { in check_baudrate() 238 fn set_divisor(&self, baud: BaudRate) -> Result<(), SystemError> { in set_divisor() 257 fn startup(&self) -> Result<(), SystemError> { in startup() 269 fn handle_irq(&self) -> Result<(), SystemError> { in handle_irq() 352 ) -> Result<(), SystemError> { in do_install() 363 fn open(&self, _tty: &TtyCoreData) -> Result<(), SystemError> { in open() 380 fn put_char(&self, tty: &TtyCoreData, ch: u8) -> Result<(), SystemError> { in put_char() 384 fn ioctl(&self, _tty: Arc<TtyCore>, _cmd: u32, _arg: usize) -> Result<(), SystemError> { in ioctl() 388 fn close(&self, _tty: Arc<TtyCore>) -> Result<(), SystemError> { in close() [all …]
|