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

Function eventfd_close

freebsd/kern/sys_eventfd.c:134–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134static int
135eventfd_close(struct file *fp, struct thread *td)
136{
137 struct eventfd *efd;
138
139 efd = fp->f_data;
140 seldrain(&efd->efd_sel);
141 knlist_destroy(&efd->efd_sel.si_note);
142 mtx_destroy(&efd->efd_lock);
143 free(efd, M_EVENTFD);
144 return (0);
145}
146
147static int
148eventfd_read(struct file *fp, struct uio *uio, struct ucred *active_cred,

Callers

nothing calls this directly

Calls 3

seldrainFunction · 0.85
knlist_destroyFunction · 0.85
freeFunction · 0.70

Tested by

no test coverage detected