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

Function fdisused

freebsd/kern/kern_descrip.c:242–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242static int
243fdisused(struct filedesc *fdp, int fd)
244{
245
246 KASSERT(fd >= 0 && fd < fdp->fd_nfiles,
247 ("file descriptor %d out of range (0, %d)", fd, fdp->fd_nfiles));
248
249 return ((fdp->fd_map[NDSLOT(fd)] & NDBIT(fd)) != 0);
250}
251
252/*
253 * Mark a file descriptor as used.

Callers 5

fdused_initFunction · 0.85
fdunusedFunction · 0.85
kern_dupFunction · 0.85
fdallocFunction · 0.85
ff_fdisusedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected