svn commit: r282250 - head/sys/sys
Davide Italiano
davide at freebsd.org
Wed Apr 29 22:42:08 UTC 2015
On Wed, Apr 29, 2015 at 3:38 PM, Mariusz Zaborski <oshogbo at freebsd.org> wrote:
>> 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
It makes sense now, thanks.
--
Davide
"There are no solved problems; there are only problems that are more
or less solved" -- Henri Poincare
More information about the svn-src-all
mailing list