Home
last modified time | relevance | path

Searched refs:is_empty (Results 1 – 25 of 68) sorted by relevance

123

/DragonOS/kernel/crates/bitmap/tests/
H A Dstatic-bitmap.rs25 assert_eq!(bitmap.is_empty(), true); in test_empty_bitmap_32()
38 assert_eq!(bitmap.is_empty(), false); in test_empty_bitmap_32()
55 assert_eq!(bitmap.is_empty(), true); in test_empty_bitmap_64()
68 assert_eq!(bitmap.is_empty(), false); in test_empty_bitmap_64()
87 assert_eq!(bitmap.is_empty(), false); in test_static_bitmap_32_first_1()
106 assert_eq!(bitmap.is_empty(), false); in test_static_bitmap_32_first_1()
129 assert_eq!(bitmap.is_empty(), false); in test_static_bitmap_32_middle_1()
148 assert_eq!(bitmap.is_empty(), false); in test_static_bitmap_32_middle_1()
171 assert_eq!(bitmap.is_empty(), false); in test_static_bitmap_32_last_1()
190 assert_eq!(bitmap.is_empty(), false); in test_static_bitmap_32_last_1()
[all …]
H A Dalloc-bitmap.rs25 assert_eq!(bitmap.is_empty(), true); in test_empty_bitmap_32()
38 assert_eq!(bitmap.is_empty(), false); in test_empty_bitmap_32()
55 assert_eq!(bitmap.is_empty(), true); in test_empty_bitmap_64()
68 assert_eq!(bitmap.is_empty(), false); in test_empty_bitmap_64()
87 assert_eq!(bitmap.is_empty(), false); in test_alloc_bitmap_32_first_1()
106 assert_eq!(bitmap.is_empty(), false); in test_alloc_bitmap_32_first_1()
129 assert_eq!(bitmap.is_empty(), false); in test_alloc_bitmap_32_middle_1()
148 assert_eq!(bitmap.is_empty(), false); in test_alloc_bitmap_32_middle_1()
171 assert_eq!(bitmap.is_empty(), false); in test_alloc_bitmap_32_last_1()
190 assert_eq!(bitmap.is_empty(), false); in test_alloc_bitmap_32_last_1()
[all …]
/DragonOS/kernel/crates/rbpf/examples/
H A Drbpf_plugin.rs26 if !args.is_empty() { in main()
34 while !args.is_empty() { in main()
67 if !args.is_empty() { in main()
77 if program_text.is_empty() { in main()
/DragonOS/user/apps/user-manage/src/check/
H A Dcheck.rs60 if info.username.is_empty() { in check()
64 if info.uid.is_empty() { in check()
68 if info.comment.is_empty() { in check()
71 if info.home_dir.is_empty() { in check()
75 if info.shell.is_empty() { in check()
99 if info.group.is_empty() && info.gid.is_empty() { in check_group_gid()
113 if !info.group.is_empty() && info.group == groupname { in check_group_gid()
114 if !info.gid.is_empty() && info.gid != gid { in check_group_gid()
119 } else if info.gid.is_empty() || info.gid == gid { in check_group_gid()
125 if !info.gid.is_empty() && info.gid == gid { in check_group_gid()
[all …]
/DragonOS/kernel/crates/intertrait/macros/src/
H A Dargs.rs34 if input.is_empty() { in parse()
49 if input.is_empty() { in parse()
H A Dlib.rs68 if paths.is_empty() { in cast_to()
H A Ditem_impl.rs63 if bindings.is_empty() { in fully_bound_trait()
/DragonOS/kernel/crates/unified-init/macros/src/
H A Dlib.rs83 if !function.sig.inputs.is_empty() { in check_function_signature()
114 if !tuple.elems.is_empty() { in check_function_signature()
195 while !input.is_empty() { in parse()
/DragonOS/kernel/src/filesystem/sysfs/
H A Dgroup.rs37 if group.attrs().is_empty() { in do_create_groups()
63 if group.attrs().is_empty() { in do_create_group()
185 if mode.is_empty() { in group_create_files()
/DragonOS/kernel/crates/bitmap/src/
H A Dstatic_bitmap.rs114 fn is_empty(&self) -> bool { in is_empty() function
115 self.core.is_empty(&self.data) in is_empty()
H A Dalloc_bitmap.rs103 fn is_empty(&self) -> bool { in is_empty() method
104 self.core.is_empty(&self.data) in is_empty()
/DragonOS/kernel/src/net/event_poll/
H A Dmod.rs243 if !flags.difference(FileMode::O_CLOEXEC).is_empty() { in do_create_epoll()
324 .is_empty() in do_epoll_ctl()
542 if revents.is_empty() { in ep_send_events()
621 if !event.is_empty() { in ep_insert()
677 if !event.is_empty() { in ep_modify()
689 !self.ready_list.is_empty() in ep_events_available()
741 .is_empty() in wakeup_epoll()
742 || pollflags.difference(ep_events).is_empty()) in wakeup_epoll()
/DragonOS/kernel/src/libs/
H A Dcpumask.rs77 pub fn is_empty(&self) -> bool { in is_empty() method
78 self.bmp.is_empty() in is_empty()
H A Dmutex.rs122 if inner.wait_list.is_empty() { in unlock()
/DragonOS/user/apps/user-manage/src/cmd/
H A Dgroupmod.rs38 if !cmd.options.is_empty() { in main()
H A Dusermod.rs38 if !cmd.options.is_empty() { in main()
/DragonOS/build-scripts/kernel_build/src/utils/
H A Dmod.rs20 while !queue.is_empty() { in list_all_files()
/DragonOS/kernel/src/driver/tty/
H A Dkthread.rs36 if KEYBUF.is_empty() { in tty_refresh_thread()
/DragonOS/kernel/src/time/
H A Dtimer.rs144 if timer_list.is_empty() { in activate()
256 if timer_list.is_empty() { in run()
345 if timer_list.is_empty() { in timer_get_first_expire()
/DragonOS/kernel/src/exception/
H A Dhandle.rs80 if desc_inner.actions().is_empty() || desc_inner.common_data().disabled() { in handle()
126 if unlikely(desc_inner_guard.actions().is_empty()) { in handle()
166 if status.bitand(mask).is_empty() { in irq_may_run()
H A Dmanage.rs302 if desc.actions().is_empty() { in inner_setup_irq()
324 if !desc_inner_guard.actions().is_empty() { in inner_setup_irq()
771 if irq_aff.is_empty() { in irq_setup_affinity()
812 let r = if force || !cpumask.is_empty() { in irq_do_set_affinity()
973 if !(flags & IrqLineStatus::IRQ_TYPE_LEVEL_MASK).is_empty() { in do_set_irq_trigger()
/DragonOS/kernel/src/filesystem/vfs/
H A Dcore.rs77 if !root_entries.is_empty() { in vfs_init()
321 if rest.is_empty() { in do_mount()
353 if rest.is_empty() { in do_mount_mkdir()
/DragonOS/kernel/crates/rust-slabmalloc/src/
H A Dsc.rs134 if slab_page.is_empty(self.obj_per_page) { in check_page_assignments()
346 let is_empty_after_dealloc = slab_page.is_empty(self.obj_per_page); in deallocate()
/DragonOS/user/apps/user-manage/src/executor/
H A Dexecutor.rs111 .filter(|username| !username.is_empty()) in write_group_file()
153 .filter(|username| !username.is_empty()) in write_gshadow_file()
378 .filter(|username| !username.is_empty()) in update_group_file()
448 .filter(|username| !username.is_empty()) in update_gshadow_file()
465 if users.is_empty() { in update_gshadow_file()
512 if info.new_password.is_empty() { in update_passwd_file()
/DragonOS/kernel/src/syscall/
H A Duser_access.rs246 if byte_buffer.len() % core::mem::size_of::<T>() != 0 || byte_buffer.is_empty() { in convert_with_offset()
333 if byte_buffer.len() % core::mem::size_of::<T>() != 0 || byte_buffer.is_empty() { in convert_with_offset()

123