Home
last modified time | relevance | path

Searched refs:is_null (Results 1 – 25 of 26) sorted by relevance

12

/DragonOS/kernel/src/libs/
H A Drbtree.rs107 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 Dalign.rs54 if ptr.is_null() { in new_zeroed()
/DragonOS/kernel/src/time/
H A Dsyscall.rs79 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 Dbuddy.rs236 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 Dkernel_allocator.rs41 if unlikely(virt_addr.is_null()) { in alloc_in_buddy()
/DragonOS/kernel/crates/rust-slabmalloc/src/
H A Dsc.rs202 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 Dmain.rs84 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 Duser_access.rs79 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 Dmod.rs338 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 Dsyscall.rs240 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 Dsyscall.rs140 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 Dsyscall.rs120 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 Dmod.rs1422 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 Dsyscall.rs71 if event.is_null() { in epoll_ctl()
/DragonOS/kernel/src/arch/riscv64/
H A Dcpu.rs21 if core::intrinsics::unlikely(ptr.is_null()) { in current_cpu_id()
/DragonOS/kernel/src/mm/
H A Dc_adapter.rs37 if !ptr.is_null() { in do_kmalloc()
H A Dmod.rs190 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 Dmod.rs100 if fdt_paddr.is_null() { in parse_dtb()
/DragonOS/kernel/src/driver/firmware/efi/
H A Dmemmap.rs79 if unlikely(self.inner.vaddr.unwrap_or(VirtAddr::new(0)).is_null()) { in next()
H A Dinit.rs163 if st_vaddr.is_null() { in uefi_init()
H A Dtables.rs107 while !prev_paddr.is_null() { in parse_config_tables()
/DragonOS/kernel/src/libs/futex/
H A Dfutex.rs668 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 Dsyscall.rs691 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 Dmod.rs324 if core::intrinsics::unlikely((unsafe { *p }).is_null()) { in arch_current_pcb()
/DragonOS/kernel/src/arch/x86_64/process/
H A Dmod.rs277 if unlikely((unsafe { *p }).is_null()) { in arch_current_pcb()

12