/DragonOS/build-scripts/kernel_build/src/cfiles/arch/ |
H A D | x86_64.rs | 17 include_dirs.insert("src/arch/x86_64/include".into()); in setup_global_include_dir() 26 files.insert(f); in setup_files() 31 files.insert(PathBuf::from("src/arch/x86_64/asm/head.S")); in setup_files() 32 files.insert(PathBuf::from("src/arch/x86_64/asm/entry.S")); in setup_files() 33 files.insert(PathBuf::from("src/arch/x86_64/asm/apu_boot.S")); in setup_files()
|
H A D | riscv64.rs | 16 include_dirs.insert("src/arch/riscv64/include".into()); in setup_global_include_dir() 20 files.insert(PathBuf::from("src/arch/riscv64/asm/head.S")); in setup_files() 25 files.insert(f); in setup_files()
|
/DragonOS/kernel/src/driver/block/cache/ |
H A D | cached_block_device.rs | 144 pub fn insert(f_data_vec: Vec<FailData>, data: &[u8]) -> Result<usize, BlockCacheError> { in insert() method 168 space.insert(lba_id, data) in insert_one_block() 215 pub fn insert(&mut self, lba_id: BlockId, data: Vec<u8>) -> Result<(), BlockCacheError> { in insert() method 216 unsafe { self.0.get_mut().insert(lba_id, data) } in insert() 276 pub fn insert(&mut self, lba_id: BlockId, data: Vec<u8>) -> Result<(), BlockCacheError> { in insert() method 289 mapper.insert(lba_id, index); in insert() 300 mapper.insert(lba_id, index); in insert() 319 pub fn insert(&mut self, lba_id: BlockId, caddr: CacheBlockAddr) -> Option<()> { in insert() method 320 unsafe { self.lock.get_mut().insert(lba_id, caddr) } in insert() 347 pub fn insert(&mut self, lba_id: BlockId, caddr: CacheBlockAddr) -> Option<()> { in insert() method [all …]
|
/DragonOS/kernel/src/exception/ |
H A D | irqdata.rs | 245 .insert(IrqStatus::IRQD_IRQ_MASKED); in set_masked() 256 .insert(IrqStatus::IRQD_IRQ_INPROGRESS); in set_inprogress() 275 .insert(IrqStatus::IRQD_IRQ_DISABLED); in set_disabled() 298 .insert(IrqStatus::IRQD_IRQ_STARTED); in set_started() 333 self.state.insert(status); in irqd_insert() 544 self.insert(Self::IRQD_AFFINITY_SET); in mark_affinity_set() 552 self.insert(Self::IRQD_DEFAULT_TRIGGER_SET); in mark_trigger_type_set() 575 self.insert(Self::IRQD_SINGLE_TARGET); in set_single_target() 583 self.insert(Self::IRQD_HANDLE_ENFORCE_IRQCTX); in set_handle_enforce_irqctx() 615 self.insert(Self::IRQD_FORWARDED_TO_VCPU); in set_forwarded_to_vcpu() [all …]
|
H A D | irqdesc.rs | 208 .insert(IrqDescState::IRQS_SYSFS); in mark_in_sysfs() 302 desc_guard.line_status.insert(set); in modify_status() 399 self.line_status.insert(IrqLineStatus::IRQ_NOREQUEST); in set_norequest() 409 self.line_status.insert(IrqLineStatus::IRQ_NOPROBE); in set_noprobe() 418 self.line_status.insert(IrqLineStatus::IRQ_NOTHREAD); in set_nothread() 431 self.line_status.insert(IrqLineStatus::IRQ_PER_CPU); in line_status_set_per_cpu() 445 self.line_status.insert(IrqLineStatus::IRQ_NO_BALANCING); in line_status_set_no_debug() 532 .insert(trigger & IrqLineStatus::IRQ_TYPE_SENSE_MASK); in set_trigger_type() 540 self.line_status.insert(IrqLineStatus::IRQ_LEVEL); in set_level() 892 manager.insert(IrqNumber::new(i), irq_desc); in early_irq_init() [all …]
|
H A D | resend.rs | 64 .insert(IrqDescState::IRQS_REPLAY); in irq_check_and_resend()
|
/DragonOS/kernel/src/libs/ |
H A D | rbtree.rs | 455 self.insert(k, v); in extend() 940 self.insert(k, v); in replace_or_insert() 1008 pub fn insert(&mut self, k: K, v: V) { in insert() method 1425 m.insert(1, 2); in test_insert() 1427 m.insert(2, 4); in test_insert() 1429 m.insert(2, 6); in test_insert() 1441 m.insert(2, 4); in test_replace() 1453 m.insert(1, 2); in test_clone() 1455 m.insert(2, 4); in test_clone() 1493 m.insert(i, i); in test_lots_of_insertions() [all …]
|
H A D | keyboard_parser.rs | 172 scancode_status.insert = true; in handle_func0() 175 scancode_status.insert = false; in handle_func0() 444 insert: bool, field 474 insert: false, in new()
|
H A D | elf.rs | 386 .insert(AtType::PhEnt as u8, ehdr.e_phentsize as usize); in create_auxv() 389 .insert(AtType::PageSize as u8, MMArch::PAGE_SIZE); in create_auxv() 390 init_info.auxv.insert(AtType::Phdr as u8, phdr_vaddr.data()); in create_auxv() 393 .insert(AtType::PhNum as u8, ehdr.e_phnum as usize); in create_auxv() 396 .insert(AtType::Entry as u8, entrypoint_vaddr.data()); in create_auxv() 663 elf_map_flags.insert(MapFlags::MAP_FIXED_NOREPLACE); in load() 670 elf_map_flags.insert(MapFlags::MAP_FIXED_NOREPLACE); in load()
|
/DragonOS/kernel/src/net/socket/ |
H A D | mod.rs | 93 .insert(socket.socket_handle(), handle_item); in new_socket() 560 None => listen_table_guard.insert(port, ProcessManager::current_pid()), in bind_port() 804 events.insert(EPollEventType::EPOLL_LISTEN_CAN_ACCEPT); in tcp_poll() 814 events.insert(EPollEventType::EPOLLHUP); in tcp_poll() 818 events.insert( in tcp_poll() 827 events.insert(EPollEventType::EPOLLIN | EPollEventType::EPOLLRDNORM); in tcp_poll() 833 events.insert(EPollEventType::EPOLLOUT | EPollEventType::EPOLLWRNORM); in tcp_poll() 840 events.insert(EPollEventType::EPOLLOUT | EPollEventType::EPOLLWRNORM); in tcp_poll() 843 events.insert(EPollEventType::EPOLLOUT | EPollEventType::EPOLLWRNORM); in tcp_poll() 849 events.insert(EPollEventType::EPOLLERR); in tcp_poll() [all …]
|
/DragonOS/build-scripts/kernel_build/src/cfiles/ |
H A D | common.rs | 11 files.insert(f); in setup_common_files() 19 include_dirs.insert(dir.into()); in setup_common_include_dir()
|
/DragonOS/docs/kernel/trace/ |
H A D | eBPF.md | 302 map.insert(1, define_func!(raw_map_lookup_elem)); 303 map.insert(2, define_func!(raw_map_update_elem)); 304 map.insert(3, define_func!(raw_map_delete_elem)); 305 map.insert(164, define_func!(raw_map_for_each_elem)); 306 map.insert(195, define_func!(raw_map_lookup_percpu_elem)); 307 // map.insert(93,define_func!(raw_bpf_spin_lock); 308 // map.insert(94,define_func!(raw_bpf_spin_unlock); 310 map.insert(25, define_func!(raw_perf_event_output)); 312 map.insert(4, define_func!(raw_bpf_probe_read)); 314 map.insert(6, define_func!(trace_printf)); [all …]
|
/DragonOS/kernel/src/bpf/helper/ |
H A D | mod.rs | 311 map.insert(HELPER_MAP_LOOKUP_ELEM, define_func!(raw_map_lookup_elem)); in init_helper_functions() 312 map.insert(HELPER_MAP_UPDATE_ELEM, define_func!(raw_map_update_elem)); in init_helper_functions() 313 map.insert(HELPER_MAP_DELETE_ELEM, define_func!(raw_map_delete_elem)); in init_helper_functions() 314 map.insert( in init_helper_functions() 318 map.insert( in init_helper_functions() 325 map.insert( in init_helper_functions() 330 map.insert(HELPER_BPF_PROBE_READ, define_func!(raw_bpf_probe_read)); in init_helper_functions() 332 map.insert(HELPER_TRACE_PRINTF, define_func!(trace_printf)); in init_helper_functions() 335 map.insert(HELPER_MAP_PUSH_ELEM, define_func!(raw_map_push_elem)); in init_helper_functions() 336 map.insert(HELPER_MAP_POP_ELEM, define_func!(raw_map_pop_elem)); in init_helper_functions() [all …]
|
/DragonOS/user/apps/user-manage/src/parser/ |
H A D | parser.rs | 37 options.insert(option, "".to_string()); in parse() 48 options.insert(option, groups.clone()); in parse() 60 options.insert(option, value); in parse() 124 options.insert(option, value); in parse()
|
/DragonOS/kernel/src/driver/tty/pty/ |
H A D | unix98pty.rs | 69 ctrl.pktstatus.insert(TtyPacketStatus::TIOCPKT_FLUSHWRITE); in flush_buffer() 137 ctrl.pktstatus.insert(TtyPacketStatus::TIOCPKT_DOSTOP); in set_termios() 139 ctrl.pktstatus.insert(TtyPacketStatus::TIOCPKT_NOSTOP); in set_termios() 144 ctrl.pktstatus.insert(TtyPacketStatus::TIOCPKT_IOCTL); in set_termios() 157 .insert(ControlMode::CS8 | ControlMode::CREAD); in set_termios() 170 ctrl.pktstatus.insert(TtyPacketStatus::TIOCPKT_START); in start() 188 ctrl.pktstatus.insert(TtyPacketStatus::TIOCPKT_STOP); in stop() 275 core.flags_write().insert(TtyFlag::PTY_LOCK); in ptmx_open()
|
H A D | mod.rs | 118 .insert(core.index(), other_tty.clone()); in pty_common_install() 119 driver.ttys().insert(core.index(), tty.clone()); in pty_common_install() 137 PTS_DRIVER.ttys().insert(core.index(), other_tty); in pty_common_install() 147 core.flags_write().insert(TtyFlag::IO_ERROR); in pty_common_open() 152 core.flags_write().insert(TtyFlag::IO_ERROR); in pty_common_open() 160 core.flags_write().insert(TtyFlag::IO_ERROR); in pty_common_open() 166 core.flags_write().insert(TtyFlag::THROTTLED); in pty_common_open() 178 tty.flags_write().insert(TtyFlag::PTY_LOCK); in pty_set_lock()
|
/DragonOS/user/apps/test_ebpf/syscall_ebpf/syscall_ebpf-ebpf/src/ |
H A D | main.rs | 27 SYSCALL_LIST.insert(&(syscall_num as u32), &new_v,0).unwrap(); in try_syscall_ebpf() 29 SYSCALL_LIST.insert(&(syscall_num as u32), &1,0).unwrap(); in try_syscall_ebpf()
|
/DragonOS/kernel/src/driver/base/ |
H A D | kobject.rs | 63 pub fn update_kobj_state(&self, insert: Option<KObjectState>, remove: Option<KObjectState>) { in update_kobj_state() 64 let insert = insert.unwrap_or(KObjectState::empty()); in update_kobj_state() localVariable 67 *state = (*state | insert) & !remove; in update_kobj_state()
|
/DragonOS/tools/debugging/logmonitor/src/backend/monitor/ |
H A D | logset.rs | 39 pub fn insert(&mut self, key: K, value: V) { in insert() method 43 let prev = self.inner.insert(key, value); in insert()
|
/DragonOS/kernel/src/libs/futex/ |
H A D | syscall.rs | 33 flags.insert(FutexFlag::FLAGS_SHARED); in do_futex() 37 flags.insert(FutexFlag::FLAGS_CLOCKRT); in do_futex()
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | syscall.rs | 1319 FileType::File => kstat.mode.insert(ModeType::S_IFREG), in do_fstat() 1320 FileType::Dir => kstat.mode.insert(ModeType::S_IFDIR), in do_fstat() 1321 FileType::BlockDevice => kstat.mode.insert(ModeType::S_IFBLK), in do_fstat() 1322 FileType::CharDevice => kstat.mode.insert(ModeType::S_IFCHR), in do_fstat() 1323 FileType::SymLink => kstat.mode.insert(ModeType::S_IFLNK), in do_fstat() 1324 FileType::Socket => kstat.mode.insert(ModeType::S_IFSOCK), in do_fstat() 1325 FileType::Pipe => kstat.mode.insert(ModeType::S_IFIFO), in do_fstat() 1326 FileType::KvmDevice => kstat.mode.insert(ModeType::S_IFCHR), in do_fstat() 1327 FileType::FramebufferDevice => kstat.mode.insert(ModeType::S_IFCHR), in do_fstat() 1490 FileType::File => tmp.stx_mode.insert(ModeType::S_IFREG), in do_statx() [all …]
|
H A D | mount.rs | 454 .insert(metadata.inode_id, new_mount_fs.clone()); in mount() 458 MOUNT_LIST().insert(mount_path?, new_mount_fs.clone()); in mount() 475 .insert(metadata.inode_id, new_mount_fs.clone()); in mount_from() 684 pub fn insert<T: AsRef<str>>(&self, path: T, fs: Arc<MountFS>) { in insert() method 685 self.0.write().insert(MountPath::from(path.as_ref()), fs); in insert()
|
/DragonOS/kernel/src/ipc/ |
H A D | pipe.rs | 78 events.insert(EPollEventType::EPOLLIN & EPollEventType::EPOLLRDNORM); in poll() 83 events.insert(EPollEventType::EPOLLHUP) in poll() 90 events.insert(EPollEventType::EPOLLIN & EPollEventType::EPOLLWRNORM); in poll() 95 events.insert(EPollEventType::EPOLLERR); in poll()
|
/DragonOS/kernel/src/driver/pci/ |
H A D | root.rs | 258 .insert(ecam_root_info.segment_group_number, pci_root); in add_pci_root() 260 inner.pci_root.insert(pci_root.bus_begin as u16, pci_root); in add_pci_root()
|
/DragonOS/kernel/src/mm/ |
H A D | memblock.rs | 107 insert: bool, in do_add_block() 135 if insert { in do_add_block() 151 if insert { in do_add_block() 164 if insert { in do_add_block()
|