/DragonOS/kernel/src/libs/ |
H A D | rbtree.rs | 107 if self.is_null() { in set_color() 127 if self.is_null() { in get_color() 135 if self.is_null() { in is_red_color() 143 if self.is_null() { in is_black_color() 162 while !temp.left().is_null() { in min_node() 171 while !temp.right().is_null() { in max_node() 179 if !self.right().is_null() { in next() 184 if temp.parent().is_null() { in next() 197 if !self.left().is_null() { in prev() 202 if temp.parent().is_null() { in prev() [all …]
|
H A D | align.rs | 54 if ptr.is_null() { in new_zeroed()
|
/DragonOS/kernel/src/time/ |
H A D | syscall.rs | 79 if sleep_time.is_null() { in nanosleep() 88 if !rm_time.is_null() { in nanosleep() 110 if tv.is_null() { in gettimeofday() 116 let tz_buf = if timezone.is_null() { in gettimeofday() 142 if tp.is_null() { in clock_gettime()
|
/DragonOS/kernel/src/mm/allocator/ |
H A D | buddy.rs | 236 if next_page_list_addr.is_null() { in pop_front() 240 if !next_page_list_addr.is_null() { in pop_front() 250 assert!(!next_page_list_addr.is_null()); in pop_front() 270 if entry.is_null() { in pop_front() 284 if !page_list.next_page.is_null() { in pop_front() 420 if page_list.next_page.is_null() { in buddy_free() 439 if page_list.next_page.is_null() { in buddy_free() 545 let second_page_list = if first_page_list.next_page.is_null() { in buddy_free() 613 if pagelist.next_page.is_null() { in usage()
|
H A D | kernel_allocator.rs | 41 if unlikely(virt_addr.is_null()) { in alloc_in_buddy()
|
/DragonOS/kernel/crates/rust-slabmalloc/src/ |
H A D | sc.rs | 202 if !ptr.is_null() { in try_allocate_from_pagelist() 277 if ptr.is_null() && self.empty_slabs.head.is_some() { in allocate() 283 debug_assert!(!ptr.is_null(), "Allocation must have succeeded here."); in allocate() 300 if !ptr.is_null() { in allocate()
|
/DragonOS/user/apps/test-chown/src/ |
H A D | main.rs | 84 assert!(!pw.is_null(), "Invalid user name"); in main() 85 assert!(!gr.is_null(), "Invalid group name"); in main()
|
/DragonOS/kernel/src/syscall/ |
H A D | user_access.rs | 79 if user.is_null() { in check_and_clone_cstr() 121 if user.is_null() { in check_and_clone_cstr_array() 140 if str_ptr.is_null() { in check_and_clone_cstr_array()
|
H A D | mod.rs | 338 if pipefd.is_null() { in handle() 348 if pipefd.is_null() { in handle() 839 if sigmask_addr.is_null() { in handle()
|
/DragonOS/kernel/src/net/ |
H A D | syscall.rs | 240 let endpoint = if addr.is_null() { in sendto() 280 if !addr.is_null() { in recvfrom() 430 if !addr.is_null() { in do_accept() 456 if addr.is_null() { in getsockname() 485 if addr.is_null() { in getpeername() 648 if addr.is_null() || addr_len.is_null() { in write_to_user()
|
/DragonOS/kernel/src/ipc/ |
H A D | syscall.rs | 140 if !act.is_null() { in sigaction() 199 if act.is_null() { in sigaction() 204 if old_act.is_null() { in sigaction() 212 if (retval == Ok(())) && (!old_act.is_null()) { in sigaction()
|
/DragonOS/kernel/src/process/ |
H A D | syscall.rs | 120 if path.is_null() { in execve() 208 let wstatus_buf = if wstatus.is_null() { in wait4() 218 let mut tmp_rusage = if rusage.is_null() { in wait4() 226 if !rusage.is_null() { in wait4() 510 if !old_limit.is_null() { in prlimit64()
|
H A D | mod.rs | 1422 if base.is_null() || !base.check_aligned(Self::ALIGN) { in from_existed() 1452 if unlikely(unsafe { !(*stack_bottom_ptr).is_null() }) { in set_pcb() 1471 if unlikely(unsafe { (*stack_bottom_ptr).is_null() }) { in clear_pcb() 1488 if unlikely(unsafe { (*p).is_null() }) { in pcb() 1505 if unsafe { !(*ptr).is_null() } { in drop()
|
/DragonOS/kernel/src/net/event_poll/ |
H A D | syscall.rs | 71 if event.is_null() { in epoll_ctl()
|
/DragonOS/kernel/src/arch/riscv64/ |
H A D | cpu.rs | 21 if core::intrinsics::unlikely(ptr.is_null()) { in current_cpu_id()
|
/DragonOS/kernel/src/mm/ |
H A D | c_adapter.rs | 37 if !ptr.is_null() { in do_kmalloc()
|
H A D | mod.rs | 190 pub fn is_null(&self) -> bool { in is_null() method 324 pub fn is_null(&self) -> bool { in is_null() method
|
/DragonOS/kernel/src/arch/riscv64/init/ |
H A D | mod.rs | 100 if fdt_paddr.is_null() { in parse_dtb()
|
/DragonOS/kernel/src/driver/firmware/efi/ |
H A D | memmap.rs | 79 if unlikely(self.inner.vaddr.unwrap_or(VirtAddr::new(0)).is_null()) { in next()
|
H A D | init.rs | 163 if st_vaddr.is_null() { in uefi_init()
|
H A D | tables.rs | 107 while !prev_paddr.is_null() { in parse_config_tables()
|
/DragonOS/kernel/src/libs/futex/ |
H A D | futex.rs | 668 if self.list_op_pending.is_null() { in pending_uaddr() 774 if futex_uaddr.is_null() { in handle_futex_death() 859 if self.entry.is_null() { in next()
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | syscall.rs | 691 if path.is_null() { in chdir() 1405 if usr_kstat.is_null() { in do_statx() 1752 let pathname = if pathname.is_null() { in sys_utimensat() 1761 let times = if times.is_null() { in sys_utimensat() 1778 let times = if times.is_null() { in sys_utimes()
|
/DragonOS/kernel/src/arch/riscv64/process/ |
H A D | mod.rs | 324 if core::intrinsics::unlikely((unsafe { *p }).is_null()) { in arch_current_pcb()
|
/DragonOS/kernel/src/arch/x86_64/process/ |
H A D | mod.rs | 277 if unlikely((unsafe { *p }).is_null()) { in arch_current_pcb()
|