svn commit: r282250 - head/sys/sys
Mariusz Zaborski
oshogbo at FreeBSD.org
Wed Apr 29 22:38:37 UTC 2015
>
> I'm talking about sys/kern/subr_nvlist.c.
>
Yes. lib/libnv is compiling sys/kern/subr_nvlist.c.
This is the reason why we have nv_malloc.
One nv_malloc is for kernel:
#define nv_malloc(size) malloc((size), M_NVLIST, M_WAITOK)
and second nv_malloc is for user-land:
#define nv_malloc(size) (malloc((size)):
So in user-land all checks are still needed in sys/kern/subr_nvlist.c.
Thanks,
Mariusz Zaborski
More information about the svn-src-all
mailing list