MCPcopy Index your code
hub / github.com/F-Stack/f-stack / fget_locked

Function fget_locked

freebsd/sys/filedesc.h:290–300  ·  view source on GitHub ↗

Requires a FILEDESC_{S,X}LOCK held and returns without a ref. */

Source from the content-addressed store, hash-verified

288
289/* Requires a FILEDESC_{S,X}LOCK held and returns without a ref. */
290static __inline struct file *
291fget_locked(struct filedesc *fdp, int fd)
292{
293
294 FILEDESC_LOCK_ASSERT(fdp);
295
296 if (__predict_false((u_int)fd >= fdp->fd_nfiles))
297 return (NULL);
298
299 return (fdp->fd_ofiles[fd].fde_file);
300}
301
302static __inline struct filedescent *
303fdeget_locked(struct filedesc *fdp, int fd)

Callers 9

sys___cap_rights_getFunction · 0.85
kern_ioctlFunction · 0.85
kern_kmq_notifyFunction · 0.85
mq_proc_exitFunction · 0.85
kern_dupFunction · 0.85
kern_closeFunction · 0.85
dupfdopenFunction · 0.85
chroot_refuse_vdir_fdsFunction · 0.85
unp_internalizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected