Date: Thu, 6 May 2010 16:07:36 +0200 From: Erik Trulsson <ertr1013@student.uu.se> To: =?iso-8859-1?B?THVr4ag=?= Czerner <czerner.lukas@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: How to get data from kernel module ? Message-ID: <20100506140736.GA45117@falcon.midgard.homeip.net> In-Reply-To: <alpine.DEB.1.10.1005061528380.21095@a04-0215a.kn.vutbr.cz> References: <alpine.DEB.1.10.1005061528380.21095@a04-0215a.kn.vutbr.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 06, 2010 at 03:38:30PM +0200, Luk=E1=A8 Czerner wrote: > Hi, >=20 > I am creating a kernel module and I need to get some information from > that module. I can do this with ioctl and pass the data to the > user space but it seems a bit unpractical to me, because I do not know=20 > the amount of the data - it can differ. I do not know of any way to > pass a list of structures to the userspace through ioctl - is there > any? >=20 > So my question is, is there any standard way in FreeBSD to do this ? > In linux I would probably use the sysfs, but in FreeBSD I can not find > anything similar, except just creating some virtual filesystem on my > own and obviously this is not what I want to do. sysctl(3) seems to be the usual way of getting information from the kernel. --=20 <Insert your favourite quote here.> Erik Trulsson ertr1013@student.uu.se
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100506140736.GA45117>