Searched refs:SockAddr (Results 1 – 2 of 2) sorted by relevance
/DragonOS/kernel/src/net/ |
H A D | syscall.rs | 197 pub fn connect(fd: usize, addr: *const SockAddr, addrlen: usize) -> Result<usize, SystemError> { in connect() argument 198 let endpoint: Endpoint = SockAddr::to_endpoint(addr, addrlen)?; in connect() 214 pub fn bind(fd: usize, addr: *const SockAddr, addrlen: usize) -> Result<usize, SystemError> { in bind() argument 215 let endpoint: Endpoint = SockAddr::to_endpoint(addr, addrlen)?; in bind() 237 addr: *const SockAddr, in sendto() argument 243 Some(SockAddr::to_endpoint(addr, addrlen)?) in sendto() 266 addr: *mut SockAddr, in recvfrom() argument 281 let sockaddr_in = SockAddr::from(endpoint); in recvfrom() 315 let sockaddr_in = SockAddr::from(endpoint); in recvmsg() 359 pub fn accept(fd: usize, addr: *mut SockAddr, addrlen: *mut u32) -> Result<usize, SystemError> { in accept() argument [all …]
|
/DragonOS/kernel/src/syscall/ |
H A D | mod.rs | 38 net::syscall::SockAddr, 486 let addr = args[1] as *const SockAddr; in handle() constant 498 let addr = args[1] as *const SockAddr; in handle() constant 514 let addr = args[4] as *const SockAddr; in handle() constant 532 let addr = args[4] as *mut SockAddr; in handle() 550 if verify_area(virt_addr, core::mem::size_of::<SockAddr>()).is_err() { in handle() 582 SYS_ACCEPT => Self::accept(args[0], args[1] as *mut SockAddr, args[2] as *mut u32), in handle() 585 args[1] as *mut SockAddr, in handle() 590 Self::getsockname(args[0], args[1] as *mut SockAddr, args[2] as *mut u32) in handle() 593 Self::getpeername(args[0], args[1] as *mut SockAddr, args[2] as *mut u32) in handle()
|