svn commit: r282250 - head/sys/sys

Mariusz Zaborski oshogbo at FreeBSD.org
Wed Apr 29 22:30:40 UTC 2015


On 30 April 2015 at 00:28, Davide Italiano <davide at freebsd.org> wrote:

> On Wed, Apr 29, 2015 at 3:00 PM, Mariusz Zaborski <oshogbo at freebsd.org>
> wrote:
> > Author: oshogbo
> > Date: Wed Apr 29 22:00:26 2015
> > New Revision: 282250
> > URL: https://svnweb.freebsd.org/changeset/base/282250
> >
> > Log:
> >   Nvlist functionality is not used within interrupt context, so we should
> >   use M_WAITOK to allocate memory.
> >
> >   Approved by:  pjd (mentor)
> >
>
> FYI, given you're passing M_WAITOK to malloc(9) you can now remove all
> the check for return type, as long as malloc(9) with M_WAITOK can
> never fail.
>
> There is also nvlist user-land library (lib/libnv).

Thanks,
Mariusz


More information about the svn-src-all mailing list