From owner-freebsd-net@FreeBSD.ORG Tue Nov 1 05:31:31 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87144106570C for ; Tue, 1 Nov 2011 05:31:31 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) by mx1.freebsd.org (Postfix) with ESMTP id 5BB408FC1F for ; Tue, 1 Nov 2011 05:31:31 +0000 (UTC) Received: from julian-mac.elischer.org (home-nat.elischer.org [67.100.89.137]) (authenticated bits=0) by vps1.elischer.org (8.14.4/8.14.4) with ESMTP id pA15VPbS095525 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 31 Oct 2011 22:31:30 -0700 (PDT) (envelope-from julian@freebsd.org) Message-ID: <4EAF842D.3080909@freebsd.org> Date: Mon, 31 Oct 2011 22:31:25 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.2.23) Gecko/20110920 Thunderbird/3.1.15 MIME-Version: 1.0 To: Arnaud Lacombe References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: Undocumented netgraph `cmd' flags ? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Nov 2011 05:31:31 -0000 On 10/31/11 4:16 PM, Arnaud Lacombe wrote: > Hi Julian, > > For my information, is it documented anywhere that bit 28[0] and 29[1] > of Netgraph message's `cmd' shall not be used (the bits, not the > macros) ? > > Thanks, > - Arnaud > > [0]: NGM_READONLY > [1]: NGM_HASREPLY > Not really sure what you are asking. NGM_READONLY allows the base system to use a reader lock and not block other traffic while the message is bring processed. NGM_HASREPLY is not used that I can see in the kernel. It may be a historical artifact or maybe only used in the library as a hint. It has been so long since I was involved with netgraph (over a decade) that I really don't remember.