/DragonOS-0.1.8/kernel/src/mm/ |
D | syscall.rs | 130 && 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()
|
D | ucontext.rs | 455 .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()
|
D | mod.rs | 574 if !self.contains(vaddr) { in rebase() 583 pub fn contains(&self, addr: VirtAddr) -> bool { in contains() method
|
D | page.rs | 264 .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/ |
D | clocksource.rs | 320 .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/ |
D | syscall.rs | 141 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()
|
D | file.rs | 327 return self.mode.contains(FileMode::O_CLOEXEC); in close_on_exec()
|
/DragonOS-0.1.8/kernel/src/driver/tty/ |
D | tty_device.rs | 128 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()
|
D | mod.rs | 310 return self.state.read().contains(TtyCoreState::ECHO_ON); in echo_enabled()
|
/DragonOS-0.1.8/kernel/src/libs/ |
D | rbtree.rs | 1619 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()
|
D | elf.rs | 203 let tmp_prot = if !prot.contains(ProtFlags::PROT_WRITE) { in load_elf_segment()
|
/DragonOS-0.1.8/kernel/src/filesystem/fat/ |
D | entry.rs | 919 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/ |
D | exec.rs | 148 if self.flags.contains(ExecParamFlags::EXEC) { in load_mode()
|
/DragonOS-0.1.8/kernel/src/driver/pci/ |
D | pci_irq.rs | 122 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()
|
D | pci.rs | 725 if status.contains(Status::CAPABILITIES_LIST) { in capabilities_offset()
|
/DragonOS-0.1.8/kernel/src/driver/base/platform/ |
D | mod.rs | 42 if other.0.contains(id) { in matches()
|
/DragonOS-0.1.8/user/apps/test_bind/ |
D | link.lds | 136 The .ctor section from the crtend file contains the
|
/DragonOS-0.1.8/user/apps/test_fstat/ |
D | link.lds | 136 The .ctor section from the crtend file contains the
|
/DragonOS-0.1.8/user/apps/test_gettimeofday/ |
D | link.lds | 136 The .ctor section from the crtend file contains the
|
/DragonOS-0.1.8/user/apps/http_server/ |
D | link.lds | 136 The .ctor section from the crtend file contains the
|
/DragonOS-0.1.8/user/apps/test_relibc/ |
D | link.lds | 136 The .ctor section from the crtend file contains the
|
/DragonOS-0.1.8/ |
D | LICENSE | 62 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/ |
D | mod.rs | 267 if !efer.contains(EferFlags::NO_EXECUTE_ENABLE) { in init_xd_rsvd()
|
/DragonOS-0.1.8/kernel/src/net/ |
D | socket.rs | 302 if !self.metadata.options.contains(SocketOptions::BLOCK) { in read()
|