/DragonOS-0.1.9/user/apps/test_bind/ |
D | main.c | 15 struct sockaddr_in address; variable 16 int addrlen = sizeof(address); 42 if (bind(tcp_sk_fd1, (struct sockaddr *)&address, sizeof(address)) < 0) in test_tcp_bind() 47 address.sin_port = htons(PORT+1); in test_tcp_bind() 48 if (bind(tcp_sk_fd2, (struct sockaddr *)&address, sizeof(address)) < 0) in test_tcp_bind() 56 address.sin_port = htons(PORT); in test_tcp_bind() 57 if (bind(tcp_sk_fd3, (struct sockaddr *)&address, sizeof(address)) < 0) in test_tcp_bind() 104 if (bind(udp_sk_fd1, (struct sockaddr *)&address, sizeof(address)) < 0) in test_udp_bind() 109 address.sin_port = htons(PORT+1); in test_udp_bind() 110 if (bind(udp_sk_fd2, (struct sockaddr *)&address, sizeof(address)) < 0) in test_udp_bind() [all …]
|
/DragonOS-0.1.9/user/apps/http_server/ |
D | main.c | 177 struct sockaddr_in address; in main() local 178 int addrlen = sizeof(address); in main() 197 address.sin_family = AF_INET; in main() 198 address.sin_addr.s_addr = INADDR_ANY; in main() 199 address.sin_port = htons(PORT); in main() 202 if (bind(server_fd, (struct sockaddr *)&address, sizeof(address)) < 0) in main() 220 … if ((new_socket = accept(server_fd, (struct sockaddr *)&address, (socklen_t *)&addrlen)) < 0) in main()
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/pci/ |
D | pci.rs | 16 let address = ((bus_device_function.bus as u32) << 16) in read_config() localVariable 22 io_out32(PORT_PCI_CONFIG_ADDRESS, address); in read_config() 30 let address = ((bus_device_function.bus as u32) << 16) in write_config() localVariable 36 io_out32(PORT_PCI_CONFIG_ADDRESS, address); in write_config()
|
/DragonOS-0.1.9/kernel/src/exception/ |
D | msi.rs | 33 pub const fn new(address: u64, data: u32) -> Self { in new() 35 address_lo: address as u32, in new() 36 address_hi: (address >> 32) as u32, in new() 51 pub const fn address(&self) -> u64 { in address() method
|
/DragonOS-0.1.9/kernel/src/mm/allocator/ |
D | page_frame.rs | 307 unsafe fn free(&mut self, address: PhysAddr, count: PageFrameCount); in free() 313 unsafe fn free_one(&mut self, address: PhysAddr) { in free_one() 314 return self.free(address, PageFrameCount::new(1)); in free_one() 325 unsafe fn free(&mut self, address: PhysAddr, count: PageFrameCount) { in free() 326 return T::free(self, address, count); in free() 331 unsafe fn free_one(&mut self, address: PhysAddr) { in free_one() 332 return T::free_one(self, address); in free_one()
|
/DragonOS-0.1.9/kernel/src/libs/futex/ |
D | futex.rs | 176 address: u64, field 181 self.address.hash(state); in hash() 190 return self.address == other.address; in eq() 197 && self.address == other.address; in eq() 503 let mut address = uaddr.data(); in get_futex_key() localVariable 506 let offset = address & (MMArch::PAGE_SIZE - 1); in get_futex_key() 513 address -= offset; in get_futex_key() 522 address: address as u64, in get_futex_key() 536 address: address as u64, in get_futex_key()
|
/DragonOS-0.1.9/kernel/src/mm/ |
D | mod.rs | 135 pub const fn new(address: usize) -> Self { in new() 136 Self(address) in new() 254 pub const fn new(address: usize) -> Self { in new() 255 return Self(address); in new() 504 unsafe fn read<T>(address: VirtAddr) -> T { in read() 505 return ptr::read(address.data() as *const T); in read() 510 unsafe fn write<T>(address: VirtAddr, value: T) { in write() 511 ptr::write(address.data() as *mut T, value); in write() 515 unsafe fn write_bytes(address: VirtAddr, value: u8, count: usize) { in write_bytes() 516 ptr::write_bytes(address.data() as *mut u8, value, count); in write_bytes() [all …]
|
D | slab.h | 29 extern unsigned long kfree(void *address);
|
D | no_init.rs | 117 unsafe fn free(&mut self, address: PhysAddr, count: PageFrameCount) { in free() 119 assert!(address.check_aligned(MMA::PAGE_SIZE)); in free() 121 let vaddr = MMA::phys_2_virt(address); in free()
|
D | page.rs | 160 self.entry(index)?.address().ok()?, in next_level_table() 207 pub fn address(&self) -> Result<PhysAddr, PhysAddr> { in address() method 712 let paddr = entry.address().ok()?; in translate() 805 return Some((entry.address().ok()?, entry.flags())); in unmap_phys_inner()
|
/DragonOS-0.1.9/kernel/src/driver/pci/ |
D | pci.rs | 44 pub const fn new(address: usize) -> Self { in new() 45 Self(address) in new() 657 let address = bdf << 12 | register_offset as u32; in cam_offset() localVariable 659 assert!(address & 0x3 == 0); in cam_offset() 660 address in cam_offset() 667 let address = self.cam_offset(bus_device_function, register_offset); in read_config() localVariable 671 .add((address >> 2) as usize)) in read_config() 686 let address = self.cam_offset(bus_device_function, register_offset); in write_config() localVariable 692 .add((address >> 2) as usize)) in write_config() 1224 address: u64, [all …]
|
/DragonOS-0.1.9/kernel/src/arch/riscv64/mm/ |
D | mod.rs | 97 unsafe fn invalidate_page(address: VirtAddr) { in invalidate_page() 98 riscv::asm::sfence_vma(0, address.data()); in invalidate_page() 199 unsafe fn free(&mut self, address: crate::mm::PhysAddr, count: PageFrameCount) { in free() 202 return allocator.free(address, count); in free()
|
/DragonOS-0.1.9/kernel/src/arch/x86_64/mm/ |
D | mod.rs | 166 unsafe fn invalidate_page(address: VirtAddr) { in invalidate_page() 168 asm!("invlpg [{0}]", in(reg) address.data(), options(nostack, preserves_flags)); in invalidate_page() 271 unsafe fn read<T>(address: VirtAddr) -> T { in read() 272 return core::ptr::read(address.data() as *const T); in read() 275 unsafe fn write<T>(address: VirtAddr, value: T) { in write() 276 core::ptr::write(address.data() as *mut T, value); in write() 279 unsafe fn write_bytes(address: VirtAddr, value: u8, count: usize) { in write_bytes() 280 core::ptr::write_bytes(address.data() as *mut u8, value, count); in write_bytes() 611 unsafe fn free(&mut self, address: crate::mm::PhysAddr, count: PageFrameCount) { in free() 614 return allocator.free(address, count); in free()
|
/DragonOS-0.1.9/kernel/src/driver/open_firmware/ |
D | fdt.rs | 288 let address = PhysAddr::new(node.address() as usize); in early_init_fdt_scan_reserved_mem() localVariable 290 kdebug!("Reserve memory: {:?}-{:?}", address, address + size); in early_init_fdt_scan_reserved_mem() 291 mem_block_manager().reserve_block(address, size).unwrap(); in early_init_fdt_scan_reserved_mem()
|
/DragonOS-0.1.9/tools/qemu/ |
D | ifup-nat | 53 --listen-address=$GATEWAY \
|
/DragonOS-0.1.9/kernel/src/net/ |
D | net_core.rs | 77 .update_ip_addrs(&[wire::IpCidr::Ipv4(config.address)]) in dhcp_query()
|
/DragonOS-0.1.9/kernel/src/driver/net/e1000e/ |
D | e1000e.rs | 213 let (address, size) = bar0 in new() 216 if address == 0 { in new()
|
/DragonOS-0.1.9/ |
D | README_EN.md | 52   You can send an email to the project's maintainer: longjin. His email address is [longj…
|
D | LICENSE | 240 address new problems or concerns.
|