svn commit: r282250 - head/sys/sys
Davide Italiano
davide at freebsd.org
Wed Apr 29 22:32:35 UTC 2015
On Wed, Apr 29, 2015 at 3:30 PM, Mariusz Zaborski <oshogbo at freebsd.org> wrote:
> 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
I'm talking about sys/kern/subr_nvlist.c.
--
Davide
"There are no solved problems; there are only problems that are more
or less solved" -- Henri Poincare
More information about the svn-src-head
mailing list