HomeFreeBSD

kinfo_getfile: Add a comment explaining 4/3 ratio

Description

kinfo_getfile: Add a comment explaining 4/3 ratio

We first get the expected size of the data from the kern.proc.filedesc
sysctl, allocate 4/3 of that size, and then fetch the data. Add a
comment about the reason (the fd table may grow between the two calls).

Sponsored by: The FreeBSD Foundation

Details

Provenance
emasteAuthored on Fri, Apr 11, 6:37 PM
Parents
rG7c72c0822b94: tmpfs: turn vfs.tmpfs.memory_percent into CTLFLAG_RWTUN
Branches
Unknown
Tags
Unknown