Date: Wed, 10 Feb 1999 07:33:41 +0600 (ALMT) From: Boris Popov <bp@butya.kz> To: Emmanuel DELOGET <pixel@DotCom.FR> Cc: Eivind Eklund <eivind@FreeBSD.ORG>, FreeBSD Hackers Mail List <hackers@FreeBSD.ORG> Subject: Re: Adding sysctl entries Message-ID: <Pine.BSF.4.05.9902100728230.4362-100000@lion.butya.kz> In-Reply-To: <199902091507.PAA10987@excalibur.oceanis.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9902100728230.4362-100000>