From owner-svn-src-head@FreeBSD.ORG Wed Apr 29 22:30:40 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 765FBEFD; Wed, 29 Apr 2015 22:30:40 +0000 (UTC) Received: from mail-wg0-x234.google.com (mail-wg0-x234.google.com [IPv6:2a00:1450:400c:c00::234]) (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 1F00410F9; Wed, 29 Apr 2015 22:30:40 +0000 (UTC) Received: by wgen6 with SMTP id n6so43554424wge.3; Wed, 29 Apr 2015 15:30:38 -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=3vOWgEB9MybhkPp8FoXZQIA7095JVyMU/BV34W6E5Fg=; b=jypP3DyAJgo9ntIBbHpjnypca8IkZrkwuEeWvUS2r/MMBGJAJmDeJAyH1gVU0vX+Mo V/ufrgcIL7RFdlRWBKkwQjhkGya8EcNAl8jnByp4nSEJOEZrJUB5HyPXRaDMqDFR/4xq /ioGmY2cd5S/uEC60mRqwnYv9d/MkcEBWPHB62zMPO0uXU/IAby5evckXUPfi8wa1RhQ onDvOegGeGFeXifgORRpkGJRg/vp/2r7hsVg8Pc+qdzGGAPzDrJfk0vyt2Z2yd5/bMTY 1DQ2HfMLwhiAqRE7uPzr6Ni//s33sC1CnMQ8Osk99WEhFGUCqkAtnWAZvKFMSzh4GvBU dYHQ== MIME-Version: 1.0 X-Received: by 10.194.104.164 with SMTP id gf4mr2556985wjb.102.1430346638682; Wed, 29 Apr 2015 15:30:38 -0700 (PDT) Sender: oshogbo.vx@gmail.com Received: by 10.28.187.214 with HTTP; Wed, 29 Apr 2015 15:30:38 -0700 (PDT) In-Reply-To: References: <201504292200.t3TM0R2J062088@svn.freebsd.org> Date: Thu, 30 Apr 2015 00:30:38 +0200 X-Google-Sender-Auth: t0dTTBLThfP-8436WAX66k3UAW8 Message-ID: Subject: Re: svn commit: r282250 - head/sys/sys From: Mariusz Zaborski To: Davide Italiano Cc: "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2015 22:30:40 -0000 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