From owner-freebsd-hackers Tue Feb 9 17:34:29 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA14470 for freebsd-hackers-outgoing; Tue, 9 Feb 1999 17:34:29 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from lion.butya.kz (butya-gw.butya.kz [194.87.112.252]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA14462; Tue, 9 Feb 1999 17:34:20 -0800 (PST) (envelope-from bp@butya.kz) Received: from bp (helo=localhost) by lion.butya.kz with local-esmtp (Exim 2.054 #1) id 10AOX7-00019M-00; Wed, 10 Feb 1999 07:33:41 +0600 Date: Wed, 10 Feb 1999 07:33:41 +0600 (ALMT) From: Boris Popov To: Emmanuel DELOGET cc: Eivind Eklund , FreeBSD Hackers Mail List Subject: Re: Adding sysctl entries In-Reply-To: <199902091507.PAA10987@excalibur.oceanis.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 9 Feb 1999, Emmanuel DELOGET wrote: > ** > I wanna add some sysctl entries to a loadable kernel > ** > module. As I'm sure I'm not the first doing that, > ** > if anybody knows... > ** > ** It is not possible at the moment. :-( > > The result seems bad... I had to compile the kernel, then to > reboot... Each time I wonder wether I added a bug or not... > And if there is a bug, I'm out... Any idea would be welcome... You can try this: take code from any file system (null fs for simplicity) and look at nfs_vfsops variable in /sys/nfs/nfs_vfsops.c file. The last structure element do the trick. Of course, your kld become a VFS type, but I hope this will not be necessary soon. -- Boris Popov To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message