MCPcopy Create free account
hub / github.com/Starry-OS/StarryOS / write_to_user

Method write_to_user

api/src/socket.rs:61–66  ·  view source on GitHub ↗
(&self, addr: UserPtr<sockaddr>, addrlen: &mut socklen_t)

Source from the content-addressed store, hash-verified

59 }
60
61 fn write_to_user(&self, addr: UserPtr<sockaddr>, addrlen: &mut socklen_t) -> AxResult<()> {
62 match self {
63 SocketAddr::V4(v4) => v4.write_to_user(addr, addrlen),
64 SocketAddr::V6(v6) => v6.write_to_user(addr, addrlen),
65 }
66 }
67
68 fn family(&self) -> u16 {
69 match self {

Callers 4

sys_accept4Function · 0.80
sys_getsocknameFunction · 0.80
sys_getpeernameFunction · 0.80
recv_implFunction · 0.80

Calls 4

fill_addrFunction · 0.85
cast_to_sliceFunction · 0.85
pushMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected