From owner-freebsd-multimedia Sun May 10 12:51:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA02130 for freebsd-multimedia-outgoing; Sun, 10 May 1998 12:51:00 -0700 (PDT) (envelope-from owner-freebsd-multimedia@FreeBSD.ORG) Received: from rah.star-gate.com (rah.star-gate.com [209.133.7.234]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA02115 for ; Sun, 10 May 1998 12:50:49 -0700 (PDT) (envelope-from hasty@rah.star-gate.com) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.8.8/8.8.8) with ESMTP id MAA06675; Sun, 10 May 1998 12:50:31 -0700 (PDT) (envelope-from hasty@rah.star-gate.com) Message-Id: <199805101950.MAA06675@rah.star-gate.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Bernie Doehner cc: Luigi Rizzo , multimedia@FreeBSD.ORG Subject: Re: new bt848 driver In-reply-to: Your message of "Sun, 10 May 1998 11:42:45 PDT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 10 May 1998 12:50:31 -0700 From: Amancio Hasty Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi Bernie, This is what is in the driver: static int bt848_card = -1; SYSCTL_INT(_hw, OID_AUTO, bt848_card, CTLFLAG_RW, &bt848_card, -1, ""); What Luigi and friends want is : A root node for the bt848. hw.bt848 Then , hw.bt848.card hw.bt848.tuner hw.bt848.reverse_mute Because they don't want to do something like: sysctl -a | grep bt848 to identify all the bt848 variables they rather do something like: sysctl hw.bt848 Also the hw.bt848 root node avoids name space pollution and further categorizes the sysctl tree. >From browsing at the kernel , I think we want something similar to: vfs_aio.c:SYSCTL_NODE(_vfs, OID_AUTO, aio, CTLFLAG_RW, 0, "AIO mgmt"); And, I just talk myself into doing it 8) Cheers, Amancio > > Yes, I did received the note . Can someone show me how to do it? > > static int bt848_card=1; > SYSCTL_INT(_hw,OID_AUTO,bt848_card,CTLFLAG_RW,&bt848_card,0,""); > > Cheers, > > Bernie > > > > > Tnks, > > Amancio > > > > If the recognition algorithm fails , you can still program the driver: > > > > sysctl -w hw.bt848_card= > > > > sysctl -w hw.bt848_tuner= > > > > sysctl -w hw.bt848_reverse_mute=<0|1> 1 reverses the function of the tuner mute > > > > > > somebody suggested to create a "bt848" node in the sysctl tree so that > > > you would have variables namde > > > > > > hw.bt848.card > > > hw.bt848.tuner > > > > > > etc. . This probably gives you some advantage when you want to list > > > only a subset of sysctl variables. > > > > > > cheers > > > luigi > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-multimedia" in the body of the message > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message