Home
last modified time | relevance | path

Searched defs:usize (Results 1 – 25 of 65) sorted by relevance

123

/DragonOS-0.1.8/kernel/src/mm/
Dc_adapter.rs29 pub unsafe extern "C" fn rs_pseudo_map_phys(vaddr: usize, paddr: usize, size: usize) { in rs_pseudo_map_phys()
38 pub unsafe extern "C" fn rs_map_phys(vaddr: usize, paddr: usize, size: usize, flags: usize) { in rs_map_phys()
67 pub unsafe extern "C" fn kzalloc(size: usize, _gfp: gfp_t) -> usize { in kzalloc()
73 pub unsafe extern "C" fn kmalloc(size: usize, _gfp: gfp_t) -> usize { in kmalloc()
79 fn do_kmalloc(size: usize, zero: bool) -> usize { in do_kmalloc()
116 pub unsafe extern "C" fn kfree(vaddr: usize) -> usize { in kfree()
Dsyscall.rs120 len: usize, in mmap()
121 prot_flags: usize, in mmap()
122 map_flags: usize, in mmap()
124 _offset: usize, in mmap()
125 ) -> Result<usize, SystemError> { in mmap()
170 pub fn munmap(start_vaddr: VirtAddr, len: usize) -> Result<usize, SystemError> { in munmap()
201 len: usize, in mprotect()
202 prot_flags: usize, in mprotect()
203 ) -> Result<usize, SystemError> { in mprotect()
/DragonOS-0.1.8/kernel/src/io/
Ddevice.rs35 fn read_at(&self, offset: usize, len: usize, buf: &mut [u8]) -> Result<usize, SystemError>; in read_at()
42 fn write_at(&self, offset: usize, len: usize, buf: &[u8]) -> Result<usize, SystemError>; in write_at()
63 count: usize, in read_at()
65 ) -> Result<usize, SystemError>; in read_at()
77 count: usize, in write_at()
79 ) -> Result<usize, SystemError>; in write_at()
100 fn block_size(&self) -> usize; in block_size()
109 fn read_at(&self, offset: usize, len: usize, buf: &mut [u8]) -> Result<usize, SystemError> { in read_at()
145 fn write_at(&self, offset: usize, len: usize, buf: &[u8]) -> Result<usize, SystemError> { in write_at()
209 pub fn new(start_addr: usize, end_addr: usize, blk_size_log2: u8) -> BlockIter { in new()
[all …]
/DragonOS-0.1.8/kernel/src/mm/allocator/
Dslab.rs17 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.8/kernel/src/process/
Dsyscall.rs15 pub fn fork(&self) -> Result<usize, SystemError> { in fork()
21 pub fn vfork(&self) -> Result<usize, SystemError> { in vfork()
31 ) -> Result<usize, SystemError> { in execve()
41 ) -> Result<usize, SystemError> { in wait4()
56 pub fn exit(status: usize) -> ! { in exit()
/DragonOS-0.1.8/kernel/src/driver/base/char/
Dmod.rs76 pub fn new(dev_t: DeviceNumber, minorct: usize, name: &'static str) -> Self { in new()
98 pub fn base_minor(&self) -> usize { in base_minor()
106 pub fn minorct(&self) -> usize { in minorct()
119 fn major_to_index(major: usize) -> usize { in major_to_index()
164 count: usize, in register_chardev_region()
177 baseminor: usize, in alloc_chardev_region()
178 count: usize, in alloc_chardev_region()
191 minorct: usize, in __register_chardev_region()
245 minorct: usize, in __unregister_chardev_region()
270 pub fn cdev_add(cdev: Arc<dyn CharDevice>, dev_t: DeviceNumber, range: usize) { in cdev_add()
[all …]
/DragonOS-0.1.8/kernel/src/ipc/
Dsyscall.rs30 pub fn pipe(fd: &mut [i32]) -> Result<usize, SystemError> { in pipe()
44 pub fn kill(pid: pid_t, sig: c_int) -> Result<usize, SystemError> { in kill()
85 act: usize, in sigaction()
86 old_act: usize, in sigaction()
88 ) -> Result<usize, SystemError> { in sigaction()
Dpipe.rs77 _offset: usize, in read_at()
78 len: usize, in read_at()
81 ) -> Result<usize, crate::syscall::SystemError> { in read_at()
156 _offset: usize, in write_at()
157 len: usize, in write_at()
160 ) -> Result<usize, crate::syscall::SystemError> { in write_at()
/DragonOS-0.1.8/kernel/src/net/
Dsyscall.rs31 address_family: usize, in socket()
32 socket_type: usize, in socket()
33 protocol: usize, in socket()
34 ) -> Result<usize, SystemError> { in socket()
75 fd: usize, in setsockopt()
76 level: usize, in setsockopt()
77 optname: usize, in setsockopt()
79 ) -> Result<usize, SystemError> { in setsockopt()
98 fd: usize, in getsockopt()
99 level: usize, in getsockopt()
[all …]
Dmod.rs72 fn read(&self, buf: &mut [u8]) -> (Result<usize, SystemError>, Endpoint); in read()
80 fn write(&self, buf: &[u8], to: Option<Endpoint>) -> Result<usize, SystemError>; in write()
173 _cmd: usize, in ioctl()
174 _arg0: usize, in ioctl()
175 _arg1: usize, in ioctl()
176 _arg2: usize, in ioctl()
177 ) -> Result<usize, SystemError> { in ioctl()
195 _level: usize, in setsockopt()
196 _optname: usize, in setsockopt()
/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dsyscall.rs129 pub fn open(path: &str, mode: FileMode) -> Result<usize, SystemError> { in open()
194 pub fn close(fd: usize) -> Result<usize, SystemError> { in close()
206 pub fn read(fd: i32, buf: &mut [u8]) -> Result<usize, SystemError> { in read()
224 pub fn write(fd: i32, buf: &[u8]) -> Result<usize, SystemError> { in write()
242 pub fn lseek(fd: i32, seek: SeekFrom) -> Result<usize, SystemError> { in lseek()
274 pub fn chdir(dest_path: &str) -> Result<usize, SystemError> { in chdir()
308 pub fn getdents(fd: i32, buf: &mut [u8]) -> Result<usize, SystemError> { in getdents()
333 pub fn mkdir(path: &str, mode: usize) -> Result<usize, SystemError> { in mkdir()
346 pub fn unlinkat(_dirfd: i32, pathname: &str, flags: u32) -> Result<usize, SystemError> { in unlinkat()
377 pub fn dup(oldfd: i32) -> Result<usize, SystemError> { in dup()
[all …]
/DragonOS-0.1.8/kernel/src/filesystem/devfs/
Dnull_dev.rs111 _offset: usize, in read_at()
112 _len: usize, in read_at()
115 ) -> Result<usize, SystemError> { in read_at()
122 _offset: usize, in write_at()
123 len: usize, in write_at()
126 ) -> Result<usize, SystemError> { in write_at()
Dzero_dev.rs111 _offset: usize, in read_at()
112 len: usize, in read_at()
115 ) -> Result<usize, SystemError> { in read_at()
130 _offset: usize, in write_at()
131 len: usize, in write_at()
134 ) -> Result<usize, SystemError> { in write_at()
Dmod.rs220 data_: usize, in new_with_parent()
294 _data: usize, in do_create_with_data()
360 data: usize, in create_with_data()
425 fn ioctl(&self, _cmd: u32, _data: usize) -> Result<usize, SystemError> { in ioctl()
474 _offset: usize, in read_at()
475 _len: usize, in read_at()
478 ) -> Result<usize, SystemError> { in read_at()
486 _offset: usize, in write_at()
487 _len: usize, in write_at()
490 ) -> Result<usize, SystemError> { in write_at()
/DragonOS-0.1.8/kernel/src/syscall/
Duser_access.rs24 pub unsafe fn clear_user(dest: VirtAddr, len: usize) -> Result<usize, SystemError> { in clear_user()
33 pub unsafe fn copy_to_user(dest: VirtAddr, src: &[u8]) -> Result<usize, SystemError> { in copy_to_user()
43 pub unsafe fn copy_from_user(dst: &mut [u8], src: VirtAddr) -> Result<usize, SystemError> { in copy_from_user()
71 max_length: Option<usize>, in check_and_clone_cstr()
/DragonOS-0.1.8/kernel/src/driver/tty/
Dmod.rs105 pub fn input(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in input()
122 pub fn output(&self, buf: &mut [u8], block: bool) -> Result<usize, TtyError> { in output()
133 pub fn stdout(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in stdout()
144 pub fn stderr(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in stderr()
155 pub fn read_stdin(&self, buf: &mut [u8], block: bool) -> Result<usize, TtyError> { in read_stdin()
199 fn write_stdin(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in write_stdin()
231 fn read_output(&self, buf: &mut [u8], block: bool) -> Result<usize, TtyError> { in read_output()
264 fn write_output(&self, buf: &[u8], block: bool) -> Result<usize, TtyError> { in write_output()
Dtty_device.rs78 pub fn check_rw_param(&self, len: usize, buf: &[u8]) -> Result<(), SystemError> { in check_rw_param()
86 pub fn input(&self, buf: &[u8]) -> Result<usize, SystemError> { in input()
144 _offset: usize, in read_at()
145 len: usize, in read_at()
148 ) -> Result<usize, SystemError> { in read_at()
178 _offset: usize, in write_at()
179 len: usize, in write_at()
182 ) -> Result<usize, SystemError> { in write_at()
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dahci_inode.rs117 offset: usize, // lba地址 in read_at()
118 len: usize, in read_at()
121 ) -> Result<usize, SystemError> { in read_at()
136 offset: usize, // lba地址 in write_at()
137 len: usize, in write_at()
140 ) -> Result<usize, SystemError> { in write_at()
Dahcidisk.rs56 count: usize, // 读取lba的数量 in read_at()
58 ) -> Result<usize, SystemError> { in read_at()
215 count: usize, in write_at()
217 ) -> Result<usize, SystemError> { in write_at()
453 count: usize, in read_at()
455 ) -> Result<usize, SystemError> { in read_at()
467 count: usize, in write_at()
469 ) -> Result<usize, SystemError> { in write_at()
482 fn block_size(&self) -> usize { in block_size()
/DragonOS-0.1.8/kernel/src/libs/
Dnotifier.rs82 nr_to_call: Option<usize>, in call_chain()
128 nr_to_call: Option<usize>, in call_chain()
166 nr_to_call: Option<usize>, in call_chain()
193 nr_to_call: Option<usize>, in call_chain()
Dalign.rs22 const fn max(a: usize, b: usize) -> usize { in max()
121 pub fn page_align_up(addr: usize) -> usize { in page_align_up()
137 pub fn check_aligned(value: usize, align: usize) -> bool { in check_aligned()
/DragonOS-0.1.8/kernel/src/driver/keyboard/
Dps2_keyboard.rs95 _offset: usize, in read_at()
96 len: usize, in read_at()
99 ) -> Result<usize, SystemError> { in read_at()
115 _offset: usize, in write_at()
116 _len: usize, in write_at()
119 ) -> Result<usize, SystemError> { in write_at()
/DragonOS-0.1.8/kernel/src/filesystem/sysfs/
Dmod.rs170 _offset: usize, in read_at()
171 _len: usize, in read_at()
174 ) -> Result<usize, SystemError> { in read_at()
180 _offset: usize, in write_at()
181 _len: usize, in write_at()
184 ) -> Result<usize, SystemError> { in write_at()
265 fn ioctl(&self, _cmd: u32, _data: usize) -> Result<usize, SystemError> { in ioctl()
291 _data: usize, in do_create_with_data()
423 data_: usize, in new_with_parent()
/DragonOS-0.1.8/kernel/src/smp/
Dc_adapter.rs4 pub extern "C" fn rs_kick_cpu(cpu_id: usize) -> usize { in rs_kick_cpu()
/DragonOS-0.1.8/kernel/src/arch/x86_64/asm/
Dirqflags.rs15 pub fn local_irq_restore(x: usize) { in local_irq_restore()

123