Running `sysctl -a` causes crash (Hyper-V)
Eitan Adler
lists at eitanadler.com
Wed Nov 13 06:32:21 UTC 2013
On Tue, Nov 12, 2013 at 4:48 PM, Julian Elischer <julian at freebsd.org> wrote:
> On 11/12/13, 5:31 AM, Mateusz Guzik wrote:
>>
>> On Tue, Nov 12, 2013 at 03:33:45PM +0400, Sergey Kandaurov wrote:> hmm. one learns something every day. nitems() is new to me..
> yes assuming nitems is supported on all platforms then this adds a safety
> belt
> and is a good idea.
/usr/include/sys/param.h:#define nitems(x) (sizeof((x)) /
sizeof((x)[0]))
--
Eitan Adler
More information about the freebsd-virtualization
mailing list