Home
last modified time | relevance | path

Searched refs:address (Results 1 – 19 of 19) sorted by relevance

/DragonOS-0.1.9/user/apps/test_bind/
Dmain.c15 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/
Dmain.c177 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/
Dpci.rs16 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/
Dmsi.rs33 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/
Dpage_frame.rs307 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/
Dfutex.rs176 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/
Dmod.rs135 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 …]
Dslab.h29 extern unsigned long kfree(void *address);
Dno_init.rs117 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()
Dpage.rs160 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/
Dpci.rs44 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/
Dmod.rs97 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/
Dmod.rs166 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/
Dfdt.rs288 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/
Difup-nat53 --listen-address=$GATEWAY \
/DragonOS-0.1.9/kernel/src/net/
Dnet_core.rs77 .update_ip_addrs(&[wire::IpCidr::Ipv4(config.address)]) in dhcp_query()
/DragonOS-0.1.9/kernel/src/driver/net/e1000e/
De1000e.rs213 let (address, size) = bar0 in new()
216 if address == 0 { in new()
/DragonOS-0.1.9/
DREADME_EN.md52 &emsp;&emsp;You can send an email to the project's maintainer: longjin. His email address is [longj…
DLICENSE240 address new problems or concerns.