Home
last modified time | relevance | path

Searched refs:insert (Results 1 – 25 of 28) sorted by relevance

12

/DragonOS-0.1.8/kernel/src/libs/
Drbtree.rs460 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 …]
Delf.rs353 .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()
Dkeyboard_parser.rs198 scancode_status.insert = true; in handle_func0()
201 scancode_status.insert = false; in handle_func0()
451 insert: bool, field
481 insert: false, in new()
Dnotifier.rs59 self.0.insert(index, block); in register()
/DragonOS-0.1.8/user/libs/libKeyboard/
Dkeyboard.c6 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/
Dtty_device.rs126 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/
Dsyscall.rs601 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()
Dfile.rs334 self.mode.insert(FileMode::O_CLOEXEC); in set_close_on_exec()
Dmount.rs335 .insert(metadata.inode_id, new_mount_fs.clone()); in mount()
/DragonOS-0.1.8/kernel/src/driver/base/device/
Dbus.rs110 bus_manager.buses.insert(id_table, bus_dev); in add_bus()
121 bus_manager.bus_drvs.insert(id_table, bus_drv); in add_driver()
Ddriver.rs71 driver_manager.drivers.insert(id_table, drv); in add_driver()
Dmod.rs214 device_manager.devices.insert(id_table, dev); in add_device()
/DragonOS-0.1.8/kernel/src/driver/base/map/
Dmod.rs54 map.insert( in kobj_map()
/DragonOS-0.1.8/kernel/src/time/
Dclocksource.rs338 .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/
Dmod.rs104 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/
Dc_adapter.rs108 guard.insert(vaddr, (vaddr, len, cap)); in do_kmalloc()
Ducontext.rs177 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/
Dmod.rs330 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/
Dcfs.rs70 self.queue.insert(pcb.virtual_runtime, pcb); in enqueue()
/DragonOS-0.1.8/kernel/src/filesystem/ramfs/
Dmod.rs277 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/
Dmod.rs233 items.insert(insert_index, chardev); in __register_chardev_region()
/DragonOS-0.1.8/kernel/src/net/
Dsocket.rs105 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/
Dsoftirq.rs231 cpu_pending(processor_id).insert(VecStatus::from(softirq_num)); in raise_softirq()
/DragonOS-0.1.8/kernel/src/filesystem/devfs/
Dmod.rs272 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/
Dvirtio_net.rs231 NET_DRIVERS.write().insert(iface.nic_id(), iface.clone()); in virtio_net()

12