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

Function soo_poll

freebsd/kern/sys_socket.c:291–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291static int
292soo_poll(struct file *fp, int events, struct ucred *active_cred,
293 struct thread *td)
294{
295 struct socket *so = fp->f_data;
296#ifdef MAC
297 int error;
298
299 error = mac_socket_check_poll(active_cred, so);
300 if (error)
301 return (error);
302#endif
303 return (sopoll(so, events, fp->f_cred, td));
304}
305
306static int
307soo_stat(struct file *fp, struct stat *ub, struct ucred *active_cred,

Callers

nothing calls this directly

Calls 2

mac_socket_check_pollFunction · 0.85
sopollFunction · 0.85

Tested by

no test coverage detected