From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 20 08:10:22 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 92F00106564A; Wed, 20 Oct 2010 08:10:22 +0000 (UTC) (envelope-from mureninc@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 395E78FC12; Wed, 20 Oct 2010 08:10:21 +0000 (UTC) Received: by yxe42 with SMTP id 42so908569yxe.13 for ; Wed, 20 Oct 2010 01:10:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=CyHRymLrLR7NuG1mFRAxaK61X8Nv39HeJIHb41tOVD0=; b=ux2oSGtgV8cqYUL6aDI9RyZZE8MrDMywAQIieR9KvHHftd+dWTGTcoSEsZRi5urowA l+kqFb4zHF5GrHnN8NRXnxwrQHsu0NEBeAOuPP9ldY/E7491mOUiGjiDkuJyemMpC2hj Y+kOLlsMvMH3k5p1F82LTBAv2YaKIYgN065/Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=J5nvmA36Ehs3rN10wKl3caHNPG1H/BWXc7bcEZZFp0XjE2vxWbI2p04XGaK7iB7xlH PdyZU44akADkD5dE5SpEJAIhUz+lAY1wZ9UxO/NEXL+dUAI7Fx+HG+e6zsQtuUA5Cofm D2NQtikb54OPtJUT8VhSGM7jILVzTtvbTpeqA= MIME-Version: 1.0 Received: by 10.100.96.14 with SMTP id t14mr793830anb.269.1287560683996; Wed, 20 Oct 2010 00:44:43 -0700 (PDT) Received: by 10.101.59.19 with HTTP; Wed, 20 Oct 2010 00:44:43 -0700 (PDT) In-Reply-To: <20101019233656.GA84316@freebsd.org> References: <20101019233656.GA84316@freebsd.org> Date: Wed, 20 Oct 2010 00:44:43 -0700 Message-ID: From: "Constantine A. Murenin" To: Alexander Best Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: addition of sysctl nodes after compile time X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2010 08:10:22 -0000 On 19 October 2010 16:36, Alexander Best wrote: > hi there, > > i stumbled upon this note in the BUGS section of the cd(4) manual: > > =A0 =A0"There is no mechanism currently to set different minimum and maxi= mum > =A0 =A0 timeouts for different CD changers; the timeout values set by the= kernel > =A0 =A0 options or the sysctl variables apply to all LUN-based CD changer= s in the > =A0 =A0 system. =A0It is possible to implement such support, but the sysc= tl imple- > =A0 =A0 mentation at least would be rather inelegant, because of the curr= ent > =A0 =A0 inability of the sysctl code to handle the addition of nodes afte= r com- > =A0 =A0 pile time. =A0Thus, it would take one dynamically sized sysctl va= riable and > =A0 =A0 a userland utility to get/set the timeout values. =A0Implementati= on of sep- > =A0 =A0 arate timeouts for different CD devices in the kernel config file= would > =A0 =A0 likely require modification of config(8) to support the two timeo= uts when > =A0 =A0 hardwiring cd devices." > > does this limitation still exist? > > cheers. > alex No, the limitation is no longer present. See sysctl_add_oid(9) for more details. C.