From owner-svn-src-head@FreeBSD.ORG Wed Apr 29 22:38:37 2015 Return-Path: Delivered-To: svn-src-head@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 4B5183F0; Wed, 29 Apr 2015 22:38:37 +0000 (UTC) Received: from mail-wi0-x232.google.com (mail-wi0-x232.google.com [IPv6:2a00:1450:400c:c05::232]) (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 D485A1155; Wed, 29 Apr 2015 22:38:36 +0000 (UTC) Received: by wief7 with SMTP id f7so225682wie.0; Wed, 29 Apr 2015 15:38:35 -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=OryONGoQXmI/NprRsq6WYtvcLhn69ZZMT7+6bPVMWLg=; b=dJVSmcShNAsQ8B+oYmFZQ5UfLTBvtS0D3AOfHREgZJ2R3OEyRmvAlbFjBjXtP2rXjR tiDmtjYT6ujsKCUaQ8e84fyjWiOQsLvXvct28yapc1P2ue9pczc9DMg6HQh3PwYQ0j72 4xoRr65gn5frUYzVEADtDwfpqWUSygNX4fxOxbal0u59prRenJYsV+K4p6YVPkwBdzVn CERytxqy+rZQC8Fyh2LTVJGHT6edQqR+hbgoA28Q0dD2G7u5QiHMzIPaRMToswgEb3f2 6KIEHSf1/pBswKDYEMPWVAdTXPV7xsRCqKpg5cs2cnpEkO4jLpE+UHwz5fCVC/DDOuFS UzRQ== MIME-Version: 1.0 X-Received: by 10.194.71.168 with SMTP id w8mr2492611wju.80.1430347115400; Wed, 29 Apr 2015 15:38:35 -0700 (PDT) Sender: oshogbo.vx@gmail.com Received: by 10.28.187.214 with HTTP; Wed, 29 Apr 2015 15:38:35 -0700 (PDT) In-Reply-To: References: <201504292200.t3TM0R2J062088@svn.freebsd.org> Date: Thu, 30 Apr 2015 00:38:35 +0200 X-Google-Sender-Auth: oOVp2EvU1k3CBd3otkz9C6VZuRk 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:38:37 -0000 > > 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