From owner-svn-src-all@FreeBSD.ORG Wed Apr 29 22:32:35 2015 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7974FE4; Wed, 29 Apr 2015 22:32:35 +0000 (UTC) Received: from mail-la0-x22c.google.com (mail-la0-x22c.google.com [IPv6:2a00:1450:4010:c03::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 19A8E1110; Wed, 29 Apr 2015 22:32:35 +0000 (UTC) Received: by labbd9 with SMTP id bd9so31137997lab.2; Wed, 29 Apr 2015 15:32:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=ocXrP0RZ3t51wTLu+Eh41VG8ZL88NR6hm9PpHXuRbdo=; b=tUX0hC5ISp5M7N7H17a5r/yPh1pAzzmg7j/c3NXh09bcap1iQuPpAv/2reaw9lsUB5 d8dwOew0rTOO3iwMGuCA5L5kbkwAxzL/g44/11KkI2c6wRQ6dlLqRe6fqwKhtIjHipMT RuLrlmUuLo9jSQ2lSFisuIIX/5svcT1ehGjK0/bpz4BR3YMqDVzwmQxtjhDJXljfQZRt Q0VFn1+C/kELUjbR48AgfQvUgNoyM6it/PjJ2px7i3LTpO0xb/kLCbNwkIy2nssezur5 T6D9uJiiWqirX/hcYVSSDWTe2+KT4A5FvM3PwtycTB/hwvdvfWSad1KGVvsxIrJEdW0t QYzw== MIME-Version: 1.0 X-Received: by 10.152.234.139 with SMTP id ue11mr1137342lac.28.1430346753293; Wed, 29 Apr 2015 15:32:33 -0700 (PDT) Sender: davide.italiano@gmail.com Received: by 10.25.88.77 with HTTP; Wed, 29 Apr 2015 15:32:33 -0700 (PDT) In-Reply-To: References: <201504292200.t3TM0R2J062088@svn.freebsd.org> Date: Wed, 29 Apr 2015 15:32:33 -0700 X-Google-Sender-Auth: JQJtH4-MNB_tFqd9w_di_hXpBHI Message-ID: Subject: Re: svn commit: r282250 - head/sys/sys From: Davide Italiano To: Mariusz Zaborski Cc: "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2015 22:32:35 -0000 On Wed, Apr 29, 2015 at 3:30 PM, Mariusz Zaborski wrote: > On 30 April 2015 at 00:28, Davide Italiano wrote: >> >> On Wed, Apr 29, 2015 at 3:00 PM, Mariusz Zaborski >> 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