Home
last modified time | relevance | path

Searched refs:filter (Results 1 – 12 of 12) sorted by relevance

/DragonOS/kernel/src/ipc/
H A Dsignal_types.rs458 let filter = |x: &SigInfo| !mask.contains(SigSet::from_bits_truncate(x.sig_no as u64)); in flush_by_mask() localVariable
459 self.queue.q.retain(filter); in flush_by_mask()
507 let filter = |x: &mut SigInfo| { in find_and_delete() localVariable
522 let mut filter_result: Vec<SigInfo> = self.q.extract_if(filter).collect(); in find_and_delete()
/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()
203 .filter(|&line| { in update_passwd_file()
253 .filter(|&line| !line.contains(&info.username)) in update_shadow_file()
378 .filter(|username| !username.is_empty()) in update_group_file()
448 .filter(|username| !username.is_empty()) in update_gshadow_file()
/DragonOS/kernel/src/driver/irqchip/
H A Driscv_sifive_plic.rs416 let all_plics = fdt.all_nodes().filter(|x| { in riscv_sifive_plic_init()
551 let nodes = fdt_ref.all_nodes().filter(|x| { in associate_irq_with_plic_domain()
/DragonOS/kernel/src/filesystem/vfs/
H A Dmount.rs618 let self_dep = self.0.chars().filter(|c| *c == '/').count(); in cmp()
619 let othe_dep = other.0.chars().filter(|c| *c == '/').count(); in cmp()
H A Dsyscall.rs707 let mut cwd_vec: Vec<_> = cwd.split('/').filter(|&x| !x.is_empty()).collect(); in chdir()
708 let path_split = path.split('/').filter(|&x| !x.is_empty()); in chdir()
/DragonOS/kernel/src/libs/
H A Delf.rs604 .filter(|seg| seg.p_type == elf::abi::PT_LOAD); in load()
628 .filter(|seg| seg.p_type == elf::abi::PT_LOAD); in load()
/DragonOS/kernel/src/driver/open_firmware/
H A Dfdt.rs389 let r = fdt.all_nodes().filter(move |x| { in find_node_by_compatible()
/DragonOS/kernel/crates/rust-slabmalloc/src/
H A Dpages.rs128 .filter(|&x| x.load(Ordering::Relaxed) != u64::MAX) in is_full()
/DragonOS/kernel/src/mm/
H A Ducontext.rs916 .filter(move |v| v.lock_irqsave().region.intersect(&request).is_some()) in conflicts()
1027 .filter(|(offset, size)| offset.data() + **size == region.start().data()) in unreserve_hole()
/DragonOS/kernel/src/libs/futex/
H A Dfutex.rs69 .filter(|x| futex_q.pcb.ptr_eq(&x.pcb) && x.key == futex_q.key) in contains()
/DragonOS/user/apps/user-manage/src/check/
H A Dcheck.rs885 .filter(|&x| !x.is_empty()) in check_groupname()
/DragonOS/kernel/crates/rbpf/
H A DREADME.md33 BSD systems, in order to filter packets in the kernel with tools such as
101 eBPF has been initially designed to filter packets (now it has some other hooks