/DragonOS/kernel/src/net/ |
H A D | mod.rs | 89 Protocol::HopByHop => write!(f, "Hop-by-Hop"), in fmt() 90 Protocol::Icmp => write!(f, "ICMP"), in fmt() 91 Protocol::Igmp => write!(f, "IGMP"), in fmt() 92 Protocol::Tcp => write!(f, "TCP"), in fmt() 93 Protocol::Udp => write!(f, "UDP"), in fmt() 94 Protocol::Ipv6Route => write!(f, "IPv6-Route"), in fmt() 95 Protocol::Ipv6Frag => write!(f, "IPv6-Frag"), in fmt() 96 Protocol::Icmpv6 => write!(f, "ICMPv6"), in fmt() 97 Protocol::Ipv6NoNxt => write!(f, "IPv6-NoNxt"), in fmt() 98 Protocol::Ipv6Opts => write!(f, "IPv6-Opts"), in fmt() [all …]
|
/DragonOS/kernel/src/driver/pci/ |
H A D | raw_device.rs | 95 let mut guard = self.inner.write(); in class() 125 self.inner.write().device_common.bus = bus; in set_bus() 131 self.inner.write().device_common.class = class; in set_class() 135 self.inner.write().device_common.driver = driver in set_driver() 143 self.inner.write().device_common.parent.clone() in dev_parent() 147 self.inner.write().device_common.parent = dev_parent; in set_dev_parent() 157 self.inner.write().kobject_common.kern_inode = inode; in set_inode() 169 self.inner.write().kobject_common.parent = parent; in set_parent() 177 self.inner.write().kobject_common.kset = kset; in set_kset() 185 self.inner.write().kobject_common.kobj_type = ktype; in set_kobj_type() [all …]
|
/DragonOS/kernel/src/driver/pci/test/ |
H A D | pt_driver.rs | 49 self.locked_dynid_list.write().push(id); in add_dynid() 92 let mut guard = self.driver_data.write(); in add_device() 102 let mut guard = self.driver_data.write(); in delete_device() 107 self.driver_data.write().bus = bus; in set_bus() 121 self.kobj_data.write().kern_inode = inode; in set_inode() 133 self.kobj_data.write().parent = parent; in set_parent() 141 self.kobj_data.write().kset = kset; in set_kset() 149 self.kobj_data.write().kobj_type = ktype; in set_kobj_type() 165 self.kobj_state.write() in kobj_state_mut() 169 *self.kobj_state.write() = state; in set_kobj_state()
|
H A D | pt_device.rs | 85 let mut guard = self.device_data.write(); in class() 115 self.device_data.write().bus = bus in set_bus() 123 self.device_data.write().class = class in set_class() 127 self.device_data.write().driver = driver in set_driver() 139 self.device_data.write().parent = dev_parent in set_dev_parent() 149 self.kobj_data.write().kern_inode = inode; in set_inode() 161 self.kobj_data.write().parent = parent; in set_parent() 169 self.kobj_data.write().kset = kset; in set_kset() 177 self.kobj_data.write().kobj_type = ktype; in set_kobj_type() 193 self.kobj_state.write() in kobj_state_mut() [all …]
|
/DragonOS/kernel/crates/kprobe/src/arch/rv64/ |
H A D | mod.rs | 57 core::ptr::write(address as *mut u16, inst_16); in drop() 60 core::ptr::write(address as *mut u32, inst_32); in drop() 107 core::ptr::write(address as *mut u16, C_EBREAK_INST as u16); in replace_inst() 110 core::ptr::write(inst_tmp_ptr as *mut u16, inst_16); in replace_inst() 111 core::ptr::write((inst_tmp_ptr + 2) as *mut u16, C_EBREAK_INST as u16); in replace_inst() 117 core::ptr::write(address as *mut u32, EBREAK_INST); in replace_inst() 120 core::ptr::write(inst_tmp_ptr as *mut u32, inst_32); in replace_inst() 121 core::ptr::write((inst_tmp_ptr + 4) as *mut u32, EBREAK_INST); in replace_inst()
|
/DragonOS/kernel/src/driver/serial/serial8250/ |
H A D | mod.rs | 246 self.inner.write().device_state = set_state; in set_state() 259 self.inner.write().device_common.bus = bus; in set_bus() 275 self.inner.write().device_common.driver = driver; in set_driver() 283 self.inner.write().device_common.can_match = can_match; in set_can_match() 299 self.inner.write().device_common.parent = dev_parent; in set_dev_parent() 309 self.inner.write().kobject_common.kern_inode = inode; in set_inode() 321 self.inner.write().kobject_common.parent = parent; in set_parent() 329 self.inner.write().kobject_common.kset = kset; in set_kset() 351 self.kobj_state.write() in kobj_state_mut() 355 *self.kobj_state.write() = state; in set_kobj_state() [all …]
|
/DragonOS/kernel/src/driver/base/ |
H A D | kset.rs | 112 self.kobjects.write().push(Arc::downgrade(kobj)); in join() 117 let mut kobjects = self.kobjects.write(); in leave() 136 let mut kobjects = self.kobjects.write(); in cleanup_weak() 159 self.inner.write().kern_inode = inode; in set_inode() 167 self.parent_data.write().parent = parent; in set_parent() 175 self.kobj_state.write() in kobj_state_mut() 183 self.inner.write().ktype = ktype; in set_kobj_type() 191 self.parent_data.write().kset = kset; in set_kset() 199 self.inner.write().name = name; in set_name() 203 *self.kobj_state.write() = state; in set_kobj_state()
|
H A D | cpu.rs | 156 self.inner.write().device_common.bus = bus; in set_bus() 196 self.inner.write().device_common.parent = dev_parent; in set_dev_parent() 210 self.inner.write().kobject_common.kern_inode = inode; in set_inode() 222 self.inner.write().kobject_common.parent = parent; in set_parent() 230 self.inner.write().kobject_common.kset = kset; in set_kset() 238 self.inner.write().kobject_common.kobj_type = ktype; in set_kobj_type() 246 self.inner.write().name = name; in set_name() 254 self.kobj_state.write() in kobj_state_mut()
|
H A D | subsys.rs | 146 self.ksets.write().devices_kset = Some(devices_kset); in set_devices_kset() 156 self.ksets.write().drivers_kset = Some(drivers_kset); in set_drivers_kset() 168 let mut drivers = self.drivers.write(); in add_driver_to_vec() 177 let mut drivers = self.drivers.write(); in remove_driver_from_vec() 185 let mut devices = self.devices.write(); in add_device_to_vec() 195 let mut devices = self.devices.write(); in remove_device_from_vec()
|
/DragonOS/kernel/src/arch/x86_64/driver/apic/ |
H A D | xapic.rs | 137 pub unsafe fn write(&self, reg: XApicOffset, value: u32) { in write() method 229 self.write(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_SVR, val | ENABLE); in init_current_cpu() 247 self.write(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_ESR, 0); in init_current_cpu() 248 self.write(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_ESR, 0); in init_current_cpu() 251 self.write(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_EOI, 0); in init_current_cpu() 254 self.write(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_ICR_63_32, 0); in init_current_cpu() 255 self.write( in init_current_cpu() 271 (*s).write(XApicOffset::LOCAL_APIC_OFFSET_Local_APIC_EOI, 0); in send_eoi() 298 self.write(lvt.register().into(), lvt.data); in set_lvt() 329 self.write( in write_icr() [all …]
|
/DragonOS/kernel/src/process/ |
H A D | stdio.rs | 40 .write() in stdio_init() 48 .write() in stdio_init() 56 .write() in stdio_init()
|
/DragonOS/kernel/crates/kprobe/src/arch/loongarch64/ |
H A D | mod.rs | 47 core::ptr::write(address as *mut u32, inst_32); in drop() 81 core::ptr::write(address as *mut u32, EBREAK_INST); in replace_inst() 84 core::ptr::write(inst_tmp_ptr as *mut u32, inst_32); in replace_inst() 85 core::ptr::write((inst_tmp_ptr + 4) as *mut u32, EBREAK_INST); in replace_inst()
|
/DragonOS/.github/workflows/ |
H A D | issue-checker.yml | 12 issues: write 13 pull-requests: write
|
/DragonOS/tools/debugging/logmonitor/src/backend/ |
H A D | error.rs | 27 write!(f, "File not found: {:?}", self.message.as_ref().unwrap()) in fmt() 30 write!( in fmt()
|
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/ |
H A D | mmu.rs | 118 let write = error_code & ((1_u32) << 1); in tdp_page_fault() localVariable 119 let pfn = mmu_gfn_to_pfn_fast(vcpu, gpa, prefault, gfn, write == 0, &mut map_writable)?; in tdp_page_fault() 121 __direct_map(vcpu, gpa, write, map_writable, level, gfn, pfn, prefault)?; in tdp_page_fault() 233 write: bool, in mmu_gfn_to_pfn_fast() 237 let pfn = __gfn_to_pfn(slot, gfn, false, write, writable)?; in mmu_gfn_to_pfn_fast()
|
/DragonOS/kernel/src/arch/x86_64/mm/ |
H A D | pkru.rs | 29 pub fn pkru_allows_pkey(pkey: u16, write: bool) -> bool { in pkru_allows_pkey() 35 if write & !pkru_allows_write(pkru, pkey) { in pkru_allows_pkey()
|
/DragonOS/user/apps/test-for-robustfutex/src/ |
H A D | main.rs | 47 self.addr.offset(offset).write(val); in set_val() 71 self.addr.offset(offset).write(val); in set_val() 256 futexes.offset(11).write(0x0000_0000); in test01() 257 futexes.offset(12).write(0x8000_0000); in test01() 342 futexes.offset(11).write(0x0000_0000); in test02() 343 futexes.offset(12).write(0x0000_0000); in test02() 351 count.offset(0).write(1); in test02() 352 count.offset(1).write(0); in test02()
|
/DragonOS/kernel/src/libs/ |
H A D | lazy_init.rs | 79 (*self.value.get()).as_mut_ptr().write(value); in init() 139 return write!(f, "Lazy({:?})", value); in fmt() 141 return write!(f, "Lazy(uninitialized)"); in fmt()
|
H A D | printk.rs | 46 let _ = tty.write(tty.core(), s.as_bytes(), s.len()); in __write_string() 112 write!(PrintkWriter, "[ {} ] ", record.level(),) in iodisplay() 115 write!(PrintkWriter, "\x1B[41m[ ERROR ] \x1B[0m",) in iodisplay() 118 write!(PrintkWriter, "\x1B[1;33m[ WARN ] \x1B[0m",) in iodisplay()
|
/DragonOS/kernel/src/driver/tty/ |
H A D | tty_device.rs | 121 dev.inner.write().metadata.raw_dev = dev_num; in new() 127 self.inner.write() in inner_write() 257 let ret = ld.write(tty.clone(), &buf[written..], size, mode)?; in write_at() 439 *self.fs.write() = fs; in set_fs() 449 self.inner.write().inode = inode; in set_inode() 461 self.inner.write().parent_kobj = parent in set_parent() 469 self.inner.write().kset = kset in set_kset() 495 self.kobj_state.write() in kobj_state_mut() 499 *self.kobj_state.write() = state in set_kobj_state() 517 self.inner.write().bus = bus in set_bus() [all …]
|
/DragonOS/kernel/src/virt/kvm/ |
H A D | host_mem.rs | 106 write: bool, in __gfn_to_hva_many() 113 if slot.flags & KVM_MEMSLOT_INVALID != 0 || (slot.flags & KVM_MEM_READONLY != 0) && write { in __gfn_to_hva_many() 165 write: bool, in __gfn_to_pfn() 170 let addr = __gfn_to_hva_many(slot, gfn, Some(&mut nr_pages), write)?; in __gfn_to_pfn()
|
/DragonOS/kernel/src/driver/virtio/ |
H A D | transport_pci.rs | 467 Self::InvalidVendorId(vendor_id) => write!( in fmt() 472 Self::MissingCommonConfig => write!( in fmt() 476 Self::MissingNotifyConfig => write!( in fmt() 481 write!( in fmt() 488 write!(f, "No valid `VIRTIO_PCI_CAP_ISR_CFG` capability was found.") in fmt() 490 Self::UnexpectedBarType => write!(f, "Unexpected BAR (expected memory BAR)."), in fmt() 491 Self::BarNotAllocated(bar_index) => write!(f, "Bar {} not allocated.", bar_index), in fmt() 492 Self::BarOffsetOutOfRange => write!(f, "Capability offset greater than BAR length."), in fmt() 493 Self::Misaligned { vaddr, alignment } => write!( in fmt() 498 Self::BarGetVaddrFailed => write!(f, "Get bar virtaddress failed"), in fmt()
|
/DragonOS/kernel/src/mm/ |
H A D | syscall.rs | 256 let mut address_space = address_space.write(); in brk() 277 let mut address_space = address_space.write(); in sbrk() 328 current_address_space.write().map_anonymous( in mmap() 338 current_address_space.write().file_mapping( in mmap() 424 let r = current_address_space.write().mremap( in mremap() 466 .write() in munmap() 502 .write() in mprotect() 538 .write() in madvise() 623 err = file.write(len, unsafe { in msync()
|
/DragonOS/kernel/src/arch/riscv64/init/ |
H A D | mod.rs | 70 riscv::register::stvec::write(ptr, riscv::register::stvec::TrapMode::Direct); in setup_trap_vector() 73 riscv::register::sscratch::write(0); in setup_trap_vector() 118 let mut arch_boot_params_guard = boot_params().write(); in early_setup_arch()
|
/DragonOS/kernel/src/mm/allocator/ |
H A D | buddy.rs | 204 unsafe { A::write(virt_addr, page_list) }; in write_page() 265 A::write( in pop_front() 458 A::write(buddy_entry_virt_addr, entry); in buddy_free() 462 A::write( in buddy_free() 483 A::write(buddy_entry_virt_addr, last_entry); in buddy_free() 484 A::write( in buddy_free() 491 A::write( in buddy_free() 565 unsafe { A::write(Self::entry_virt_addr(paddr, page_list.entry_num), base) } in buddy_free()
|