On Tue, 25 Jan 2011, Matthew D Fleming wrote:
> .Dv SBUF_AUTOEXTEND .
> +.Fn sbuf_new_for_sysctl
> +function will set up an sbuf with a drain function to use
> +.Fn SYSCTL_OUT
> +when the internal buffer fills.
> +The sysctl old buffer will be wired, which allows for doing an
> +.Fn sbuf_printf
> +while holding a mutex.
> .Fn sbuf_delete
> function clears the
> .Fa sbuf
Hmm. Is this description missing mention of how wiring failures are handled?
(Also, it should probably mention that this call can sleep for potentially
quite long periods of time, even if sbuf_printf (and friends) can't).