From owner-freebsd-hackers Wed Feb 10 02:32:43 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA08925 for freebsd-hackers-outgoing; Wed, 10 Feb 1999 02:32:43 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from excalibur.oceanis.net (ns.dotcom.fr [194.133.21.11]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA08920 for ; Wed, 10 Feb 1999 02:32:40 -0800 (PST) (envelope-from pixel@excalibur.oceanis.net) Received: (from pixel@localhost) by excalibur.oceanis.net (8.9.1/8.9.1) id KAA26540; Wed, 10 Feb 1999 10:32:14 GMT From: Emmanuel DELOGET Message-Id: <199902101032.KAA26540@excalibur.oceanis.net> Subject: Re: Adding sysctl entries In-Reply-To: from Boris Popov at "Feb 10, 1999 7:33:41 am" To: bp@butya.kz (Boris Popov) Date: Wed, 10 Feb 1999 11:32:13 +0100 (MET) Cc: hackers@FreeBSD.ORG (FreeBSD Hackers Mail List) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG As Boris Popov said... ** 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. It seems (but I have not tried yet) that this may not work. A little more precisions : I'm using a 2.2.8 kernel, with nfs built as a lkm, and the nfs related sysctls does not appears when I sysctl(8) -A ... Of course, I may have do something wrong :) But I'll try as soon as possible. If I'm not misunderstanging your mail, the code I need may exists in the nfs_init() function. Tell me if I'm wrong. Thanks a lot. ** ** -- ** Boris Popov ** -- ____________________________________________________________________ Emmanuel DELOGET [pixel] pixel@{dotcom.fr,epita.fr} ---- DotCom SA -------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message