Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Feb 1999 11:32:13 +0100 (MET)
From:      Emmanuel DELOGET <pixel@DotCom.FR>
To:        bp@butya.kz (Boris Popov)
Cc:        hackers@FreeBSD.ORG (FreeBSD Hackers Mail List)
Subject:   Re: Adding sysctl entries
Message-ID:  <199902101032.KAA26540@excalibur.oceanis.net>
In-Reply-To: <Pine.BSF.4.05.9902100728230.4362-100000@lion.butya.kz> from Boris Popov at "Feb 10, 1999  7:33:41 am"

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902101032.KAA26540>