From owner-svn-src-head@FreeBSD.ORG Wed Apr 29 22:42:08 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 53EC4595; Wed, 29 Apr 2015 22:42:08 +0000 (UTC) Received: from mail-la0-x22d.google.com (mail-la0-x22d.google.com [IPv6:2a00:1450:4010:c03::22d]) (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 E66F1120E; Wed, 29 Apr 2015 22:42:07 +0000 (UTC) Received: by layy10 with SMTP id y10so31294574lay.0; Wed, 29 Apr 2015 15:42:06 -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=QFSNi7+nIoh8zveNJTLo6oQ7MCTT4CjI0hjVUygeOWE=; b=EEcPCwP3ZwIE//6F5EoWLARAscfemBXSzSOlo+FQY9NINsPJKx2VAcdDos4ACCyH8Q KjjDQzjOUEEHyTLoPdmjbWG359sPvFpODBtrMC2YvfILJJLzx0+DLjeLgz9uQDO61pas 5e5cF+VoBSIpHeBO2xyBo6sDODauBqu4/Ni2YDmei6MIe3UeLLxHXFAGboRMqlGtqusC BrVzj8dE+759IKsMNY2Rgp6a6YuMBbu54TLSZJlyCO+tj6xES64iATLhhWxFn2S9aHNq 2ayn+3n2Po56SBnehFdLYFxqo4LUbAVSaTdb0Tlj6p9h4az5PXYHMh+v6rBuk43HjXcR Q/Bw== MIME-Version: 1.0 X-Received: by 10.112.211.134 with SMTP id nc6mr1138252lbc.52.1430347326205; Wed, 29 Apr 2015 15:42:06 -0700 (PDT) Sender: davide.italiano@gmail.com Received: by 10.25.88.77 with HTTP; Wed, 29 Apr 2015 15:42:06 -0700 (PDT) In-Reply-To: References: <201504292200.t3TM0R2J062088@svn.freebsd.org> Date: Wed, 29 Apr 2015 15:42:06 -0700 X-Google-Sender-Auth: kM7TLrUr3JparT-3fNF48Fq7XL0 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-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:42:08 -0000 On Wed, Apr 29, 2015 at 3:38 PM, Mariusz Zaborski 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