/DragonOS-0.1.8/kernel/src/libs/ |
D | rbtree.rs | 460 self.insert(k, v); in extend() 949 self.insert(k, v); in replace_or_insert() 1021 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() 1440 m.insert(2, 4); in test_replace() 1451 m.insert(1, 2); in test_clone() 1453 m.insert(2, 4); in test_clone() 1488 m.insert(i, i); in test_lots_of_insertions() [all …]
|
D | elf.rs | 353 .insert(AtType::PhEnt as u8, ehdr.e_phentsize as usize); in create_auxv() 356 .insert(AtType::PageSize as u8, MMArch::PAGE_SIZE); in create_auxv() 357 init_info.auxv.insert(AtType::Phdr as u8, phdr_vaddr.data()); in create_auxv() 360 .insert(AtType::PhNum as u8, ehdr.e_phnum as usize); in create_auxv() 363 .insert(AtType::Entry as u8, entrypoint_vaddr.data()); in create_auxv() 558 elf_map_flags.insert(MapFlags::MAP_FIXED_NOREPLACE); in load() 565 elf_map_flags.insert(MapFlags::MAP_FIXED_NOREPLACE); in load()
|
D | keyboard_parser.rs | 198 scancode_status.insert = true; in handle_func0() 201 scancode_status.insert = false; in handle_func0() 451 insert: bool, field 481 insert: false, in new()
|
D | notifier.rs | 59 self.0.insert(index, block); in register()
|
/DragonOS-0.1.8/user/libs/libKeyboard/ |
D | keyboard.c | 6 static bool gui_l = 0, gui_r = 0, apps = 0, insert = 0, home = 0, pgup = 0, del = 0, end = 0, pgdn … variable 377 insert = true; in keyboard_analyze_keycode() 381 insert = false; in keyboard_analyze_keycode()
|
/DragonOS-0.1.8/kernel/src/driver/tty/ |
D | tty_device.rs | 126 p.flags.insert(TtyFileFlag::STDIN); in open() 129 p.flags.insert(TtyFileFlag::STDERR); in open() 131 p.flags.insert(TtyFileFlag::STDOUT); in open() 309 guard.insert("tty0".to_string(), tty.clone()); in tty_init()
|
/DragonOS-0.1.8/kernel/src/filesystem/vfs/ |
D | syscall.rs | 601 FileType::File => kstat.mode.insert(ModeType::S_IFMT), in do_fstat() 602 FileType::Dir => kstat.mode.insert(ModeType::S_IFDIR), in do_fstat() 603 FileType::BlockDevice => kstat.mode.insert(ModeType::S_IFBLK), in do_fstat() 604 FileType::CharDevice => kstat.mode.insert(ModeType::S_IFCHR), in do_fstat() 605 FileType::SymLink => kstat.mode.insert(ModeType::S_IFLNK), in do_fstat() 606 FileType::Socket => kstat.mode.insert(ModeType::S_IFSOCK), in do_fstat() 607 FileType::Pipe => kstat.mode.insert(ModeType::S_IFIFO), in do_fstat()
|
D | file.rs | 334 self.mode.insert(FileMode::O_CLOEXEC); in set_close_on_exec()
|
D | mount.rs | 335 .insert(metadata.inode_id, new_mount_fs.clone()); in mount()
|
/DragonOS-0.1.8/kernel/src/driver/base/device/ |
D | bus.rs | 110 bus_manager.buses.insert(id_table, bus_dev); in add_bus() 121 bus_manager.bus_drvs.insert(id_table, bus_drv); in add_driver()
|
D | driver.rs | 71 driver_manager.drivers.insert(id_table, drv); in add_driver()
|
D | mod.rs | 214 device_manager.devices.insert(id_table, dev); in add_device()
|
/DragonOS-0.1.8/kernel/src/driver/base/map/ |
D | mod.rs | 54 map.insert( in kobj_map()
|
/DragonOS-0.1.8/kernel/src/time/ |
D | clocksource.rs | 338 .insert(ClocksourceFlags::CLOCK_SOURCE_VALID_FOR_HRES); in clocksource_enqueue_watchdog() 386 .insert(ClocksourceFlags::CLOCK_SOURCE_UNSTABLE); in set_unstable() 609 self.flags.insert(flags) in insert_flags() 697 .insert(ClocksourceFlags::CLOCK_SOURCE_WATCHDOG); in clocksource_watchdog() 732 .insert(ClocksourceFlags::CLOCK_SOURCE_VALID_FOR_HRES); in clocksource_watchdog()
|
/DragonOS-0.1.8/kernel/src/driver/base/platform/ |
D | mod.rs | 104 drivers.insert(id_table.clone(), driver.clone()); in register_platform_driver() 133 devices.insert(id_table.clone(), device.clone()); in register_platform_device()
|
/DragonOS-0.1.8/kernel/src/mm/ |
D | c_adapter.rs | 108 guard.insert(vaddr, (vaddr, len, cap)); in do_kmalloc()
|
D | ucontext.rs | 177 new_guard.mappings.vmas.insert(new_vma.clone()); in try_clone() 717 .insert(region.end(), prev_hole_end - region.end()); in reserve_hole() 737 .insert(region.start(), region.size() + next_hole_size.unwrap_or(0)); in unreserve_hole() 748 self.vmas.insert(vma); in insert_vma()
|
/DragonOS-0.1.8/kernel/src/filesystem/sysfs/ |
D | mod.rs | 330 guard.children.insert(String::from(_name), result.clone()); in do_create_with_data() 366 this.children.insert(name.to_string(), file); in add_file()
|
/DragonOS-0.1.8/kernel/src/sched/ |
D | cfs.rs | 70 self.queue.insert(pcb.virtual_runtime, pcb); in enqueue()
|
/DragonOS-0.1.8/kernel/src/filesystem/ramfs/ |
D | mod.rs | 277 inode.children.insert(String::from(name), result.clone()); in create_with_data() 306 .insert(String::from(name), other_locked.self_ref.upgrade().unwrap()); in link()
|
/DragonOS-0.1.8/kernel/src/driver/base/char/ |
D | mod.rs | 233 items.insert(insert_index, chardev); in __register_chardev_region()
|
/DragonOS-0.1.8/kernel/src/net/ |
D | socket.rs | 105 None => listen_table_guard.insert(port, handle), in get_port() 1180 result.insert(PollStatus::READ); in poll() 1183 result.insert(PollStatus::WRITE); in poll() 1186 result.insert(PollStatus::ERROR); in poll()
|
/DragonOS-0.1.8/kernel/src/exception/ |
D | softirq.rs | 231 cpu_pending(processor_id).insert(VecStatus::from(softirq_num)); in raise_softirq()
|
/DragonOS-0.1.8/kernel/src/filesystem/devfs/ |
D | mod.rs | 272 this.children.insert(name.to_string(), dev); in add_dev() 333 guard.children.insert(String::from(_name), result.clone()); in do_create_with_data()
|
/DragonOS-0.1.8/kernel/src/driver/net/ |
D | virtio_net.rs | 231 NET_DRIVERS.write().insert(iface.nic_id(), iface.clone()); in virtio_net()
|