From owner-freebsd-hackers Thu Nov 28 10:42:58 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A06F037B401 for ; Thu, 28 Nov 2002 10:42:57 -0800 (PST) Received: from piggy.rz.tu-ilmenau.de (piggy.rz.tu-ilmenau.de [141.24.4.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 10B6F43EBE for ; Thu, 28 Nov 2002 10:42:56 -0800 (PST) (envelope-from Martin.Kaeske@Stud.TU-Ilmenau.DE) Received: from gtw.hh59.local (erf9-d9bbe303.pool.mediaWays.net [217.187.227.3]) (authenticated (0 bits)) by piggy.rz.tu-ilmenau.de (8.11.1/8.11.1) with ESMTP id gASIgpn09331 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified NO) ; Thu, 28 Nov 2002 19:42:54 +0100 (MET) Received: from walnut.hh59.local (walnut.hh59.local [192.168.2.10]) by gtw.hh59.local (8.11.3/8.11.3) with ESMTP id gASIo4d03114 (using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified FAIL) for ; Thu, 28 Nov 2002 19:50:07 +0100 (CET) Received: (qmail 1885 invoked by uid 1000); 28 Nov 2002 18:42:47 -0000 Date: Thu, 28 Nov 2002 19:42:47 +0100 From: Martin Kaeske To: freebsd-hackers@freebsd.org Subject: inital value of oid_refcnt Message-ID: <20021128184247.GA1418@walnut.hh59.local> Mail-Followup-To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I have a question concerning "struct sysctl_oid"s initial value for oid_refcnt. Why is oid_refcnt set to 0 with the SYSCTL_OID macro but to 1 if created with sysctl_add_oid()? And another question: Is it guaranteed that all sysctls from a modules "sysctl_set" (obtained with 'sysctls = (struct linker_set*) linker_file_lookup_symbol(lf, "sysctl_set", 0);' in kern_linker.c) are initialized with "oid_refcnt==0"? thanks in advance Martin -- "At the beginning of the week, we sealed ten BSD programmers into a computer room with a single distribution of BSD Unix. Upon opening the room after seven days, we found all ten programmers dead, clutching each others throats, and thirteen new flavors of BSD." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message