From owner-freebsd-current@FreeBSD.ORG Fri Jul 22 10:28:35 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8AC9216A421; Fri, 22 Jul 2005 10:28:35 +0000 (GMT) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id F409F43D60; Fri, 22 Jul 2005 10:28:20 +0000 (GMT) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.11/8.12.11) with ESMTP id j6MASJfB096806; Fri, 22 Jul 2005 03:28:19 -0700 (PDT) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.11/8.12.3/Submit) id j6MASJS5096805; Fri, 22 Jul 2005 03:28:19 -0700 (PDT) (envelope-from rizzo) Date: Fri, 22 Jul 2005 03:28:19 -0700 From: Luigi Rizzo To: current@freebsd.org Message-ID: <20050722032819.G95489@xorpc.icir.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Cc: Subject: which lock protects sysctl instances ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jul 2005 10:28:35 -0000 hi, is there any protection in RELENG_5 and above for multiple sysctl handlers ? In other words, assume i have SYSCTL_PROC(_kern, OID_AUTO, foo, CTLTYPE_STRING|CTLFLAG_RW, 0, 0, sysctl_foo_handler, "A", "bla bla bla"); do i have to worry about multiple instances of sysctl_foo_handler() running in parallel, or they run under Giant, or some other lock ? thanks luigi