Searched hist:127050 (Results 1 - 1 of 1) sorted by relevance

/freebsd-9.3-release/sys/kern/
H A Dkern_sysctl.cdiff 127050 Mon Mar 15 23:28:45 MST 2004 truckman Don't bother calling vslock() and vsunlock() if oldlen is zero.

If vslock() returns ENOMEM, sysctl_wire_old_buffer() should set
wiredlen to zero and return zero (success) so that the handler will
operate according to sysctl(3):
The size of the buffer is given by the location specified by
oldlenp before the call, and that location gives the amount
of data copied after a successful call and after a call that
returns with the error code ENOMEM.
The handler will return an ENOMEM error because the zero length
buffer will overflow.

Completed in 99 milliseconds