Date: Thu, 06 May 2010 09:41:32 -0700 From: Julian Elischer <julian@elischer.org> To: =?windows-1252?Q?Luk=E1=9A_Czerner?= <czerner.lukas@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: How to get data from kernel module ? Message-ID: <4BE2F13C.4010708@elischer.org> 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 5/6/10 6:38 AM, Lukáš Czerner wrote: > Hi, > > 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 > 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? > > 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. > you can add a sysctl to pass out arbitrary information very easily. It's up to you to decide where you want to put it in the sysctl tree. > Thanks! > -Lukas > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BE2F13C.4010708>