>
> 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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to