Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/libs/
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 …]
Dalign.rs52 if ptr.is_null() { in new_zeroed()
/DragonOS-0.1.8/kernel/src/syscall/
Duser_access.rs73 if user.is_null() { in check_and_clone_cstr()
112 if user.is_null() { in check_and_clone_cstr_array()
131 if str_ptr.is_null() { in check_and_clone_cstr_array()
Dmod.rs518 if path_ptr.is_null() in handle()
613 if path_ptr.is_null() in handle()
660 } else if pipefd.is_null() { in handle()
675 } else if pathname.is_null() { in handle()
914 if !timeval.is_null() { in handle()
/DragonOS-0.1.8/kernel/src/ipc/
Dsyscall.rs96 if !act.is_null() { in sigaction()
160 if act.is_null() { in sigaction()
165 if old_act.is_null() { in sigaction()
173 if (retval == Ok(())) && (!old_act.is_null()) { in sigaction()
/DragonOS-0.1.8/kernel/src/mm/allocator/
Dbuddy.rs176 assert!(!page_list_paddr.is_null()); in new()
199 assert!(!page_list_paddr.is_null()); in new()
289 if next_page_list_addr.is_null() { in pop_front()
293 if !next_page_list_addr.is_null() { in pop_front()
304 assert!(!next_page_list_addr.is_null()); in pop_front()
324 if entry.is_null() { in pop_front()
338 if !page_list.next_page.is_null() { in pop_front()
475 if page_list.next_page.is_null() { in buddy_free()
528 let second_page_list = if first_page_list.next_page.is_null() { in buddy_free()
564 if page_list.next_page.is_null() { in buddy_free()
Dkernel_allocator.rs34 if unlikely(virt_addr.is_null()) { in alloc_in_buddy()
/DragonOS-0.1.8/kernel/src/process/
Dprocess.rs171 if self.fds.is_null() { in exit_files()
320 if p.is_null() { in drop_address_space()
333 assert!(self.address_space.is_null(), "Address space already set"); in set_address_space()
340 if ptr.is_null() { in address_space()
Dfork.rs57 if !(x as *const crate::include::bindings::bindings::sigaction).is_null() { in process_copy_sighand()
/DragonOS-0.1.8/kernel/src/time/
Dsyscall.rs94 if !timezone.is_null() { in gettimeofday()
/DragonOS-0.1.8/kernel/src/net/
Dsyscall.rs211 let endpoint = if addr.is_null() { in sendto()
251 if !addr.is_null() { in recvfrom()
345 if !addr.is_null() { in accept()
371 if addr.is_null() { in getsockname()
400 if addr.is_null() { in getpeername()
547 if addr.is_null() || addr_len.is_null() { in write_to_user()
/DragonOS-0.1.8/kernel/src/mm/
Dc_adapter.rs92 if !ptr.is_null() { in do_kmalloc()
Dmod.rs112 pub fn is_null(&self) -> bool { in is_null() method
236 pub fn is_null(&self) -> bool { in is_null() method
/DragonOS-0.1.8/kernel/src/arch/x86_64/
Dsyscall.rs133 if path.is_null() { in rs_do_execve()
/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dsyscall.rs623 if usr_kstat.is_null() { in fstat()