Home
last modified time | relevance | path

Searched refs:contains (Results 1 – 24 of 24) sorted by relevance

/DragonOS-0.1.8/kernel/src/mm/
Dsyscall.rs130 && map_flags.contains(MapFlags::MAP_FIXED) in mmap()
139 if !map_flags.contains(MapFlags::MAP_ANONYMOUS) { in mmap()
145 if map_flags.contains(MapFlags::MAP_HUGETLB) { in mmap()
Ducontext.rs455 .set_execute(prot_flags.contains(ProtFlags::PROT_EXEC)) in mprotect()
456 .set_write(prot_flags.contains(ProtFlags::PROT_WRITE)); in mprotect()
607 pub fn contains(&self, vaddr: VirtAddr) -> Option<Arc<LockedVMA>> { in contains() method
610 if guard.region.contains(vaddr) { in contains()
678 if flags.contains(MapFlags::MAP_FIXED_NOREPLACE) { in find_free_at()
683 if flags.contains(MapFlags::MAP_FIXED) { in find_free_at()
1017 return (self.flags.has_write() || !prot_flags.contains(ProtFlags::PROT_WRITE)) in can_have_flags()
1018 && (self.flags.has_execute() || !prot_flags.contains(ProtFlags::PROT_EXEC)); in can_have_flags()
Dmod.rs574 if !self.contains(vaddr) { in rebase()
583 pub fn contains(&self, addr: VirtAddr) -> bool { in contains() method
Dpage.rs264 .set_execute(prot_flags.contains(ProtFlags::PROT_EXEC)) in from_prot_flags()
265 .set_write(prot_flags.contains(ProtFlags::PROT_WRITE)); in from_prot_flags()
/DragonOS-0.1.8/kernel/src/time/
Dclocksource.rs320 .contains(ClocksourceFlags::CLOCK_SOURCE_MUST_VERIFY) in clocksource_enqueue_watchdog()
333 .contains(ClocksourceFlags::CLOCK_SOURCE_IS_CONTINUOUS) in clocksource_enqueue_watchdog()
421 .contains(ClocksourceFlags::CLOCK_SOURCE_MUST_VERIFY) in clocksource_dequeue_watchdog()
450 .contains(ClocksourceFlags::CLOCK_SOURCE_MUST_VERIFY) in clocksource_dequeue_watchdog()
681 .contains(ClocksourceFlags::CLOCK_SOURCE_UNSTABLE) in clocksource_watchdog()
693 .contains(ClocksourceFlags::CLOCK_SOURCE_WATCHDOG) in clocksource_watchdog()
722 .contains(ClocksourceFlags::CLOCK_SOURCE_VALID_FOR_HRES) in clocksource_watchdog()
725 .contains(ClocksourceFlags::CLOCK_SOURCE_IS_CONTINUOUS) in clocksource_watchdog()
728 .contains(ClocksourceFlags::CLOCK_SOURCE_IS_CONTINUOUS) in clocksource_watchdog()
756 if data.flags.contains(ClocksourceFlags::CLOCK_SOURCE_UNSTABLE) { in clocksource_watchdog_kthread()
/DragonOS-0.1.8/kernel/src/filesystem/vfs/
Dsyscall.rs141 if mode.contains(FileMode::O_CREAT) in open()
142 && !mode.contains(FileMode::O_DIRECTORY) in open()
163 if mode.contains(FileMode::O_DIRECTORY) && file_type != FileType::Dir { in open()
168 if mode.contains(FileMode::O_TRUNC) in open()
169 && (mode.contains(FileMode::O_RDWR) || mode.contains(FileMode::O_WRONLY)) in open()
179 if mode.contains(FileMode::O_APPEND) { in open()
Dfile.rs327 return self.mode.contains(FileMode::O_CLOEXEC); in close_on_exec()
/DragonOS-0.1.8/kernel/src/driver/tty/
Dtty_device.rs128 if mode.contains(FileMode::O_SYNC) { in open()
194 let r: Result<usize, TtyError> = if data.flags.contains(TtyFileFlag::STDOUT) { in write_at()
196 } else if data.flags.contains(TtyFileFlag::STDERR) { in write_at()
Dmod.rs310 return self.state.read().contains(TtyCoreState::ECHO_ON); in echo_enabled()
/DragonOS-0.1.8/kernel/src/libs/
Drbtree.rs1619 assert!(keys.contains(&1)); in test_keys()
1620 assert!(keys.contains(&2)); in test_keys()
1621 assert!(keys.contains(&3)); in test_keys()
1630 assert!(values.contains(&'a')); in test_values()
1631 assert!(values.contains(&'b')); in test_values()
1632 assert!(values.contains(&'c')); in test_values()
1644 assert!(values.contains(&2)); in test_values_mut()
1645 assert!(values.contains(&4)); in test_values_mut()
1646 assert!(values.contains(&6)); in test_values_mut()
Delf.rs203 let tmp_prot = if !prot.contains(ProtFlags::PROT_WRITE) { in load_elf_segment()
/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dentry.rs919 pub fn contains(&self, attr: u8) -> bool { in contains() method
1140 return (self.attributes.contains(FileAttributes::DIRECTORY)) in is_dir()
1141 && (!self.attributes.contains(FileAttributes::VOLUME_ID)); in is_dir()
1149 return (!self.attributes.contains(FileAttributes::DIRECTORY)) in is_file()
1150 && (!self.attributes.contains(FileAttributes::VOLUME_ID)); in is_file()
1158 return (!self.attributes.contains(FileAttributes::DIRECTORY)) in is_volume_id()
1159 && self.attributes.contains(FileAttributes::VOLUME_ID); in is_volume_id()
2395 if file_attr.contains(FileAttributes::LONG_NAME) { in get_raw_dir_entry()
/DragonOS-0.1.8/kernel/src/process/
Dexec.rs148 if self.flags.contains(ExecParamFlags::EXEC) { in load_mode()
/DragonOS-0.1.8/kernel/src/driver/pci/
Dpci_irq.rs122 if flag.contains(IRQ::PCI_IRQ_MSIX) { in irq_init()
154 if flag.contains(IRQ::PCI_IRQ_MSI) { in irq_init()
177 if flag.contains(IRQ::PCI_IRQ_LEGACY) { in irq_init()
Dpci.rs725 if status.contains(Status::CAPABILITIES_LIST) { in capabilities_offset()
/DragonOS-0.1.8/kernel/src/driver/base/platform/
Dmod.rs42 if other.0.contains(id) { in matches()
/DragonOS-0.1.8/user/apps/test_bind/
Dlink.lds136 The .ctor section from the crtend file contains the
/DragonOS-0.1.8/user/apps/test_fstat/
Dlink.lds136 The .ctor section from the crtend file contains the
/DragonOS-0.1.8/user/apps/test_gettimeofday/
Dlink.lds136 The .ctor section from the crtend file contains the
/DragonOS-0.1.8/user/apps/http_server/
Dlink.lds136 The .ctor section from the crtend file contains the
/DragonOS-0.1.8/user/apps/test_relibc/
Dlink.lds136 The .ctor section from the crtend file contains the
/DragonOS-0.1.8/
DLICENSE62 0. This License applies to any program or other work which contains
99 whole or in part contains or is derived from the Program or any
157 code means all the source code for all modules it contains, plus any
/DragonOS-0.1.8/kernel/src/arch/x86_64/mm/
Dmod.rs267 if !efer.contains(EferFlags::NO_EXECUTE_ENABLE) { in init_xd_rsvd()
/DragonOS-0.1.8/kernel/src/net/
Dsocket.rs302 if !self.metadata.options.contains(SocketOptions::BLOCK) { in read()