MCPcopy Create free account
hub / github.com/F-Stack/f-stack / soo_read

Function soo_read

freebsd/kern/sys_socket.c:124–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122};
123
124static int
125soo_read(struct file *fp, struct uio *uio, struct ucred *active_cred,
126 int flags, struct thread *td)
127{
128 struct socket *so = fp->f_data;
129 int error;
130
131#ifdef MAC
132 error = mac_socket_check_receive(active_cred, so);
133 if (error)
134 return (error);
135#endif
136 error = soreceive(so, 0, uio, 0, 0, 0);
137 return (error);
138}
139
140static int
141soo_write(struct file *fp, struct uio *uio, struct ucred *active_cred,

Callers

nothing calls this directly

Calls 2

mac_socket_check_receiveFunction · 0.85
soreceiveFunction · 0.85

Tested by

no test coverage detected