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

Function fdgrowtable_exp

freebsd/kern/kern_descrip.c:1780–1791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1778}
1779
1780static void
1781fdgrowtable_exp(struct filedesc *fdp, int nfd)
1782{
1783 int nfd1;
1784
1785 FILEDESC_XLOCK_ASSERT(fdp);
1786
1787 nfd1 = fdp->fd_nfiles * 2;
1788 if (nfd1 < nfd)
1789 nfd1 = nfd;
1790 fdgrowtable(fdp, nfd1);
1791}
1792
1793/*
1794 * Grow the file table to accommodate (at least) nfd descriptors.

Callers 2

kern_dupFunction · 0.85
fdallocFunction · 0.85

Calls 1

fdgrowtableFunction · 0.85

Tested by

no test coverage detected