Home
last modified time | relevance | path

Searched defs:SystemError (Results 1 – 25 of 231) sorted by relevance

12345678910

/DragonOS/kernel/src/arch/riscv64/interrupt/
H A Dhandle.rs64 fn default_handler(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in default_handler() argument
72 fn do_trap_insn_misaligned(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_insn_misaligned() argument
80 fn do_trap_insn_access_fault(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_insn_access_fault() argument
88 fn do_trap_insn_illegal(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_insn_illegal() argument
96 fn do_trap_break(trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_break() argument
103 fn do_trap_load_misaligned(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_load_misaligned() argument
111 fn do_trap_load_access_fault(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_load_access_fault() argument
119 fn do_trap_store_misaligned(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_store_misaligned() argument
127 fn do_trap_store_access_fault(_trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_store_access_fault() argument
135 fn do_trap_user_env_call(trap_frame: &mut TrapFrame) -> Result<(), SystemError> { in do_trap_user_env_call() argument
[all …]
/DragonOS/kernel/src/libs/
H A Dvec_cursor.rs46 pub fn read_u8(&mut self) -> Result<u8, SystemError> { in read_u8() argument
55 pub fn read_u16(&mut self) -> Result<u16, SystemError> { in read_u16() argument
69 pub fn read_u32(&mut self) -> Result<u32, SystemError> { in read_u32() argument
83 pub fn read_u64(&mut self) -> Result<u64, SystemError> { in read_u64() argument
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() argument
151 pub fn write_u8(&mut self, value: u8) -> Result<u8, SystemError> { in write_u8() argument
163 pub fn write_u16(&mut self, value: u16) -> Result<u16, SystemError> { in write_u16() argument
177 pub fn write_u32(&mut self, value: u32) -> Result<u32, SystemError> { in write_u32() argument
[all …]
/DragonOS/kernel/src/syscall/
H A Duser_access.rs29 pub unsafe fn clear_user(dest: VirtAddr, len: usize) -> Result<usize, SystemError> { in clear_user() argument
38 pub unsafe fn copy_to_user(dest: VirtAddr, src: &[u8]) -> Result<usize, SystemError> { in copy_to_user() argument
48 pub unsafe fn copy_from_user(dst: &mut [u8], src: VirtAddr) -> Result<usize, SystemError> { in copy_from_user() argument
78 ) -> Result<CString, SystemError> { in check_and_clone_cstr() argument
120 pub fn check_and_clone_cstr_array(user: *const *const u8) -> Result<Vec<CString>, SystemError> { in check_and_clone_cstr_array() argument
171 pub fn new<U>(addr: *const U, len: usize, from_user: bool) -> Result<Self, SystemError> { in new() argument
189 pub fn read_from_user<T>(&self, offset: usize) -> Result<&[T], SystemError> { in read_from_user() argument
197 pub fn read_one_from_user<T>(&self, offset: usize) -> Result<&T, SystemError> { in read_one_from_user() argument
210 ) -> Result<usize, SystemError> { in copy_from_user() argument
225 ) -> Result<(), SystemError> { in copy_one_from_user() argument
[all …]
/DragonOS/kernel/src/driver/input/serio/
H A Dserio_device.rs24 fn write(&self, device: &Arc<dyn SerioDevice>, data: u8) -> Result<(), SystemError>; in write() argument
26 fn open(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in open() argument
28 fn close(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in close() argument
30 fn start(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in start() argument
32 fn stop(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in stop() argument
51 pub fn register_port(&self, device: Arc<dyn SerioDevice>) -> Result<(), SystemError> { in register_port() argument
65 pub fn init_port(&self, device: Arc<dyn SerioDevice>) -> Result<(), SystemError> { in init_port() argument
H A Dserio_driver.rs17 fn write_wakeup(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in write_wakeup() argument
35 ) -> Result<(), SystemError>; in interrupt() argument
37 fn connect(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in connect() argument
39 fn reconnect(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in reconnect() argument
41 fn fast_reconnect(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in fast_reconnect() argument
43 fn disconnect(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in disconnect() argument
45 fn cleanup(&self, device: &Arc<dyn SerioDevice>) -> Result<(), SystemError>; in cleanup() argument
67 pub fn register(&self, driver: Arc<dyn SerioDriver>) -> Result<(), SystemError> { in register() argument
/DragonOS/kernel/src/driver/tty/tty_ldisc/
H A Dmod.rs16 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() argument
43 ) -> Result<usize, SystemError>; in write() argument
44 fn ioctl(&self, tty: Arc<TtyCore>, cmd: u32, arg: usize) -> Result<usize, SystemError>; in ioctl() argument
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() argument
52 fn hangup(&self, tty: Arc<TtyCore>) -> Result<(), SystemError>; in hangup() argument
61 ) -> Result<usize, SystemError>; in receive_buf() argument
[all …]
/DragonOS/kernel/src/filesystem/vfs/
H A Dmount.rs114 pub fn umount(&self) -> Result<Arc<MountFS>, SystemError> { in umount() argument
147 fn is_mountpoint_root(&self) -> Result<bool, SystemError> { in is_mountpoint_root() argument
167 fn do_find(&self, name: &str) -> Result<Arc<MountFSInode>, SystemError> { in do_find() argument
179 pub(super) fn do_parent(&self) -> Result<Arc<MountFSInode>, SystemError> { in do_parent() argument
207 fn do_umount(&self) -> Result<Arc<MountFS>, SystemError> { in do_umount() argument
219 fn do_absolute_path(&self) -> Result<String, SystemError> { in do_absolute_path() argument
250 ) -> Result<(), SystemError> { in open() argument
254 fn close(&self, data: SpinLockGuard<FilePrivateData>) -> Result<(), SystemError> { in close() argument
264 ) -> Result<Arc<dyn IndexNode>, SystemError> { in create_with_data() argument
275 fn truncate(&self, len: usize) -> Result<(), SystemError> { in truncate() argument
[all …]
H A Dmod.rs128 fn mmap(&self, _start: usize, _len: usize, _offset: usize) -> Result<(), SystemError> { in mmap() argument
139 ) -> Result<(), SystemError> { in open() argument
148 fn close(&self, _data: SpinLockGuard<FilePrivateData>) -> Result<(), SystemError> { in close() argument
168 ) -> Result<usize, SystemError>; in read_at() argument
185 ) -> Result<usize, SystemError>; in write_at() argument
190 fn poll(&self, _private_data: &FilePrivateData) -> Result<usize, SystemError> { in poll() argument
199 fn metadata(&self) -> Result<Metadata, SystemError> { in metadata() argument
208 fn set_metadata(&self, _metadata: &Metadata) -> Result<(), SystemError> { in set_metadata() argument
220 fn resize(&self, _len: usize) -> Result<(), SystemError> { in resize() argument
238 ) -> Result<Arc<dyn IndexNode>, SystemError> { in create() argument
[all …]
/DragonOS/kernel/src/filesystem/sysfs/
H A Dfile.rs60 pub fn callback_read(&self, buf: &mut [u8], offset: usize) -> Result<usize, SystemError> { in callback_read() argument
83 pub fn callback_write(&self, buf: &[u8], offset: usize) -> Result<usize, SystemError> { in callback_write() argument
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() argument
308 ) -> Result<usize, SystemError> { in write() argument
313 fn poll(&self, _data: KernCallbackData) -> Result<PollStatus, SystemError> { in poll() argument
[all …]
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/
H A Dvmx_asm_wrapper.rs8 pub fn vmxon(vmxon_pa: u64) -> Result<(), SystemError> { in vmxon() argument
27 pub fn vmx_vmwrite(vmcs_field: u32, value: u64) -> Result<(), SystemError> { in vmx_vmwrite() argument
39 pub fn vmx_vmread(vmcs_field: u32) -> Result<u64, SystemError> { in vmx_vmread() argument
49 pub fn vmx_vmptrld(vmcs_pa: u64) -> Result<(), SystemError> { in vmx_vmptrld() argument
92 pub fn vmx_vmclear(vmcs_pa: u64) -> Result<(), SystemError> { in vmx_vmclear() argument
/DragonOS/kernel/src/arch/riscv64/init/
H A Ddragonstub.rs17 fn init_bootloader_name(&self) -> Result<Option<String>, SystemError> { in init_bootloader_name() argument
21 fn init_acpi_args(&self) -> Result<BootloaderAcpiArg, SystemError> { in init_acpi_args() argument
25 fn init_kernel_cmdline(&self) -> Result<(), SystemError> { in init_kernel_cmdline() argument
33 ) -> Result<(), SystemError> { in early_init_framebuffer_info() argument
37 fn early_init_memory_blocks(&self) -> Result<(), SystemError> { in early_init_memory_blocks() argument
/DragonOS/kernel/src/driver/pci/
H A Ddriver.rs27 fn probe(&self, device: &Arc<dyn PciDevice>, id: &PciDeviceID) -> Result<(), SystemError>; in probe() argument
28 fn remove(&self, device: &Arc<dyn PciDevice>) -> Result<(), SystemError>; in remove() argument
29 fn shutdown(&self, device: &Arc<dyn PciDevice>) -> Result<(), SystemError>; in shutdown() argument
30 fn suspend(&self, device: &Arc<dyn PciDevice>) -> Result<(), SystemError>; in suspend() argument
31 fn resume(&self, device: &Arc<dyn PciDevice>) -> Result<(), SystemError>; in resume() argument
41 fn add_dynid(&mut self, id: PciDeviceID) -> Result<(), SystemError>; in add_dynid() argument
75 pub fn register(&self, driver: Arc<dyn PciDriver>) -> Result<(), SystemError> { in register() argument
H A Dattr.rs59 fn show(&self, _kobj: Arc<dyn KObject>, _buf: &mut [u8]) -> Result<usize, SystemError> { in show() argument
69 fn store(&self, _kobj: Arc<dyn KObject>, _buf: &[u8]) -> Result<usize, SystemError> { in store() argument
90 fn show(&self, _kobj: Arc<dyn KObject>, _buf: &mut [u8]) -> Result<usize, SystemError> { in show() argument
100 fn store(&self, _kobj: Arc<dyn KObject>, _buf: &[u8]) -> Result<usize, SystemError> { in store() argument
121 fn show(&self, _kobj: Arc<dyn KObject>, _buf: &mut [u8]) -> Result<usize, SystemError> { in show() argument
131 fn store(&self, _kobj: Arc<dyn KObject>, _buf: &[u8]) -> Result<usize, SystemError> { in store() argument
152 fn show(&self, _kobj: Arc<dyn KObject>, _buf: &mut [u8]) -> Result<usize, SystemError> { in show() argument
162 fn store(&self, _kobj: Arc<dyn KObject>, _buf: &[u8]) -> Result<usize, SystemError> { in store() argument
183 fn show(&self, _kobj: Arc<dyn KObject>, _buf: &mut [u8]) -> Result<usize, SystemError> { in show() argument
193 fn store(&self, _kobj: Arc<dyn KObject>, _buf: &[u8]) -> Result<usize, SystemError> { in store() argument
[all …]
/DragonOS/kernel/src/driver/base/platform/
H A Dplatform_driver.rs25 fn probe(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError>; in probe() argument
26 fn remove(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError>; in remove() argument
27 fn shutdown(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError>; in shutdown() argument
28 fn suspend(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError>; in suspend() argument
29 fn resume(&self, device: &Arc<dyn PlatformDevice>) -> Result<(), SystemError>; in resume() argument
44 pub fn register(&self, driver: Arc<dyn PlatformDriver>) -> Result<(), SystemError> { in register() argument
/DragonOS/kernel/src/driver/tty/pty/
H A Dunix98pty.rs38 fn install(&self, driver: Arc<TtyDriver>, tty: Arc<TtyCore>) -> Result<(), SystemError> { in install() argument
42 fn open(&self, tty: &TtyCoreData) -> Result<(), SystemError> { in open() argument
46 fn write(&self, tty: &TtyCoreData, buf: &[u8], nr: usize) -> Result<usize, SystemError> { in write() argument
65 fn flush_buffer(&self, tty: &TtyCoreData) -> Result<(), SystemError> { in flush_buffer() argument
76 fn ioctl(&self, tty: Arc<TtyCore>, cmd: u32, arg: usize) -> Result<(), SystemError> { in ioctl() argument
107 fn set_termios(&self, tty: Arc<TtyCore>, old_termios: Termios) -> Result<(), SystemError> { in set_termios() argument
161 fn start(&self, core: &TtyCoreData) -> Result<(), SystemError> { in start() argument
179 fn stop(&self, core: &TtyCoreData) -> Result<(), SystemError> { in stop() argument
205 ) -> Result<Arc<TtyCore>, SystemError> { in lookup() argument
217 fn close(&self, tty: Arc<TtyCore>) -> Result<(), SystemError> { in close() argument
[all …]
/DragonOS/kernel/src/driver/base/char/
H A Dmod.rs27 fn read(&self, len: usize, buf: &mut [u8]) -> Result<usize, SystemError>; in read() argument
34 fn write(&self, len: usize, buf: &[u8]) -> Result<usize, SystemError>; in write() argument
37 fn sync(&self) -> Result<(), SystemError>; in sync() argument
97 ) -> Result<DeviceNumber, SystemError> { in register_chardev_region() argument
111 ) -> Result<DeviceNumber, SystemError> { in alloc_chardev_region() argument
128 ) -> Result<DeviceNumber, SystemError> { in __register_chardev_region() argument
182 ) -> Result<(), SystemError> { in __unregister_chardev_region() argument
208 ) -> Result<(), SystemError> { in cdev_add() argument
/DragonOS/kernel/src/filesystem/ramfs/
H A Dmod.rs158 ) -> Result<Arc<dyn FileSystem + 'static>, SystemError> { in make_ramfs() argument
173 fn truncate(&self, len: usize) -> Result<(), SystemError> { in truncate() argument
188 fn close(&self, _data: SpinLockGuard<FilePrivateData>) -> Result<(), SystemError> { in close() argument
196 ) -> Result<(), SystemError> { in open() argument
206 ) -> Result<usize, SystemError> { in read_at() argument
238 ) -> Result<usize, SystemError> { in write_at() argument
271 fn metadata(&self) -> Result<Metadata, SystemError> { in metadata() argument
279 fn set_metadata(&self, metadata: &Metadata) -> Result<(), SystemError> { in set_metadata() argument
291 fn resize(&self, len: usize) -> Result<(), SystemError> { in resize() argument
307 ) -> Result<Arc<dyn IndexNode>, SystemError> { in create_with_data() argument
[all …]
/DragonOS/kernel/src/filesystem/devfs/
H A Dmod.rs125 ) -> Result<(), SystemError> { in register_device() argument
198 ) -> Result<(), SystemError> { in unregister_device() argument
296 pub fn add_dir(&self, name: &str) -> Result<(), SystemError> { in add_dir() argument
319 pub fn add_dev(&self, name: &str, dev: Arc<dyn IndexNode>) -> Result<(), SystemError> { in add_dev() argument
330 pub fn remove(&self, name: &str) -> Result<(), SystemError> { in remove() argument
349 ) -> Result<Arc<dyn IndexNode>, SystemError> { in do_create_with_data() argument
402 ) -> Result<(), SystemError> { in open() argument
406 fn close(&self, _data: SpinLockGuard<FilePrivateData>) -> Result<(), SystemError> { in close() argument
416 ) -> Result<Arc<dyn IndexNode>, SystemError> { in create_with_data() argument
423 fn find(&self, name: &str) -> Result<Arc<dyn IndexNode>, SystemError> { in find() argument
[all …]
/DragonOS/kernel/src/arch/x86_64/init/pvh/
H A Dmod.rs29 fn init_bootloader_name(&self) -> Result<Option<String>, SystemError> { in init_bootloader_name() argument
33 fn init_acpi_args(&self) -> Result<BootloaderAcpiArg, SystemError> { in init_acpi_args() argument
42 fn init_kernel_cmdline(&self) -> Result<(), SystemError> { in init_kernel_cmdline() argument
61 ) -> Result<(), SystemError> { in early_init_framebuffer_info() argument
65 fn early_init_memory_blocks(&self) -> Result<(), SystemError> { in early_init_memory_blocks() argument
125 pub(super) fn early_linux32_pvh_init(params_ptr: usize) -> Result<(), SystemError> { in early_linux32_pvh_init() argument
/DragonOS/kernel/src/process/
H A Dsyscall.rs86 pub fn fork(frame: &TrapFrame) -> Result<usize, SystemError> { in fork() argument
90 pub fn vfork(frame: &TrapFrame) -> Result<usize, SystemError> { in vfork() argument
108 ) -> Result<(), SystemError> { in execve() argument
157 ) -> Result<(), SystemError> { in do_execve() argument
205 ) -> Result<usize, SystemError> { in wait4() argument
264 pub fn getpgid(mut pid: Pid) -> Result<Pid, SystemError> { in getpgid() argument
283 ) -> Result<usize, SystemError> { in clone() argument
339 pub fn set_tid_address(ptr: usize) -> Result<usize, SystemError> { in set_tid_address() argument
373 pub fn setuid(uid: usize) -> Result<usize, SystemError> { in setuid() argument
390 pub fn setgid(gid: usize) -> Result<usize, SystemError> { in setgid() argument
[all …]
/DragonOS/kernel/src/filesystem/kernfs/
H A Dmod.rs162 ) -> Result<(), SystemError> { in open() argument
172 fn close(&self, _data: SpinLockGuard<FilePrivateData>) -> Result<(), SystemError> { in close() argument
176 fn metadata(&self) -> Result<Metadata, SystemError> { in metadata() argument
180 fn set_metadata(&self, _metadata: &Metadata) -> Result<(), SystemError> { in set_metadata() argument
185 fn resize(&self, _len: usize) -> Result<(), SystemError> { in resize() argument
195 ) -> Result<Arc<dyn IndexNode>, SystemError> { in create_with_data() argument
200 fn link(&self, _name: &str, _other: &Arc<dyn IndexNode>) -> Result<(), SystemError> { in link() argument
205 fn unlink(&self, _name: &str) -> Result<(), SystemError> { in unlink() argument
210 fn rmdir(&self, _name: &str) -> Result<(), SystemError> { in rmdir() argument
220 ) -> Result<(), SystemError> { in move_to() argument
[all …]
H A Dcallback.rs15 fn open(&self, data: KernCallbackData) -> Result<(), SystemError>; in open() argument
22 ) -> Result<usize, SystemError>; in read() argument
29 ) -> Result<usize, SystemError>; in write() argument
31 fn poll(&self, data: KernCallbackData) -> Result<PollStatus, SystemError>; in poll() argument
68 pub fn callback_read(&self, buf: &mut [u8], offset: usize) -> Result<usize, SystemError> { in callback_read() argument
76 pub fn callback_write(&self, buf: &[u8], offset: usize) -> Result<usize, SystemError> { in callback_write() argument
93 pub fn callback_read(&self, buf: &mut [u8], offset: usize) -> Result<usize, SystemError> { in callback_read() argument
102 pub fn callback_write(&self, buf: &[u8], offset: usize) -> Result<usize, SystemError> { in callback_write() argument
/DragonOS/kernel/src/filesystem/procfs/
H A Dkmsg.rs60 pub fn read(&mut self, buf: &mut [u8]) -> Result<usize, SystemError> { in read() argument
70 fn read_all(&mut self, buf: &mut [u8]) -> Result<usize, SystemError> { in read_all() argument
81 fn read_level(&mut self, buf: &mut [u8]) -> Result<usize, SystemError> { in read_level() argument
103 pub fn read_clear(&mut self, buf: &mut [u8]) -> Result<usize, SystemError> { in read_clear() argument
111 pub fn clear(&mut self) -> Result<usize, SystemError> { in clear() argument
119 pub fn set_level(&mut self, log_level: usize) -> Result<usize, SystemError> { in set_level() argument
156 pub fn data_size(&mut self) -> Result<usize, SystemError> { in data_size() argument
/DragonOS/kernel/src/virt/kvm/
H A Dvcpu_dev.rs105 ) -> Result<(), SystemError> { in open() argument
110 fn close(&self, _data: SpinLockGuard<FilePrivateData>) -> Result<(), SystemError> { in close() argument
114 fn metadata(&self) -> Result<Metadata, SystemError> { in metadata() argument
122 fn list(&self) -> Result<Vec<String>, SystemError> { in list() argument
126 fn set_metadata(&self, metadata: &Metadata) -> Result<(), SystemError> { in set_metadata() argument
150 ) -> Result<usize, SystemError> { in ioctl() argument
204 ) -> Result<usize, SystemError> { in read_at() argument
215 ) -> Result<usize, SystemError> { in write_at() argument
H A Dvm_dev.rs103 ) -> Result<(), SystemError> { in open() argument
108 fn close(&self, _data: SpinLockGuard<FilePrivateData>) -> Result<(), SystemError> { in close() argument
112 fn metadata(&self) -> Result<Metadata, SystemError> { in metadata() argument
120 fn list(&self) -> Result<Vec<String>, SystemError> { in list() argument
124 fn set_metadata(&self, metadata: &Metadata) -> Result<(), SystemError> { in set_metadata() argument
148 ) -> Result<usize, SystemError> { in ioctl() argument
200 ) -> Result<usize, SystemError> { in read_at() argument
211 ) -> Result<usize, SystemError> { in write_at() argument
216 fn kvm_vm_ioctl_create_vcpu(id: u32) -> Result<usize, SystemError> { in kvm_vm_ioctl_create_vcpu() argument

12345678910