HomeFreeBSD

Don't generate data in sysctl_out_proc unless we intend to copy out.

Description

Don't generate data in sysctl_out_proc unless we intend to copy out.

The first call is used to gauge how much spaces is needed. Just computing
the size instead of generating the output allows to not take the proctree
lock.

Details

Provenance
mjgAuthored on Feb 25 2018, 3:16 PM
Parents
rG7d3761dc7285: Don't declare __assfail as static
Branches
Unknown
Tags
Unknown

Event Timeline