How to get data from kernel module ?

2010-05-06 Thread Lukáš Czerner
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 struct

Re: How to get data from kernel module ?

2010-05-06 Thread Lukáš Czerner
On Thu, 6 May 2010, Julian Elischer wrote: > Date: Thu, 06 May 2010 09:41:32 -0700 > From: Julian Elischer > To: Lukáš Czerner > Cc: freebsd-hackers@freebsd.org > Subject: Re: How to get data from kernel module ? > > On 5/6/10 6:38 AM, Lukáš Czerner wrote: > > H

Re: How to get data from kernel module ?

2010-05-07 Thread Lukáš Czerner
On Thu, 6 May 2010, Ivan Voras wrote: > Date: Thu, 06 May 2010 20:12:07 +0200 > From: Ivan Voras > To: freebsd-hackers@freebsd.org > Subject: Re: How to get data from kernel module ? > > On 05/06/10 15:38, Lukáš Czerner wrote: > > Hi, > > > > I am creati

How to change vnode operations ?

2010-04-22 Thread Lukáš Czerner
Hi all, this may sound a little odd, since I have noticed that there is much work done to not allow such a thing ($SUBJ). But may be you can help me and point me to the right direction. I am writing a kernel module with somewhat similar functionality like nullfs has, BUT it has to have some featu

Re: How to change vnode operations ?

2010-04-22 Thread Lukáš Czerner
On Thu, 22 Apr 2010, Gleb Kurtsou wrote: > Date: Thu, 22 Apr 2010 22:18:49 +0300 > From: Gleb Kurtsou > To: Lukáš Czerner > Cc: freebsd-hackers@freebsd.org > Subject: Re: How to change vnode operations ? > > On (22/04/2010 16:02), Lukáš Czerner wrote: > > Hi all

Re: How to change vnode operations ?

2010-04-24 Thread Lukáš Czerner
On Fri, 23 Apr 2010, Gleb Kurtsou wrote: > Date: Fri, 23 Apr 2010 12:22:57 +0300 > From: Gleb Kurtsou > To: Lukáš Czerner > Cc: freebsd-hackers@freebsd.org > Subject: Re: How to change vnode operations ? > > On (23/04/2010 08:10), Lukáš Czerner wrote: > > On Thu

Re: How to change vnode operations ?

2010-04-27 Thread Lukáš Czerner
On Tue, 27 Apr 2010, Gleb Kurtsou wrote: > Date: Tue, 27 Apr 2010 13:58:48 +0300 > From: Gleb Kurtsou > To: Lukáš Czerner > Cc: freebsd-hackers@freebsd.org > Subject: Re: How to change vnode operations ? > > On (24/04/2010 12:26), Lukáš Czerner wrote: > > On Fri

ioctl, copy string from user

2010-04-29 Thread Lukáš Czerner
Hi, I know that there are plenty of examples in the kernel code, but I just can not get it working, so maybe I am doing some stupid mistake I am not aware of. Please give me a hint if you can. What I want to do is simply call the ioctl from the userspace with (char *) argument. Then, in kernel io

Re: ioctl, copy string from user

2010-04-29 Thread Lukáš Czerner
On Thu, 29 Apr 2010, Lukáš Czerner wrote: > Date: Thu, 29 Apr 2010 19:52:45 +0200 (CEST) > From: Lukáš Czerner > To: freebsd-hackers@freebsd.org > Cc: czerner.lu...@gmail.com > Subject: ioctl, copy string from user > > Hi, > > I know that there are plenty of example

Re: ioctl, copy string from user

2010-04-29 Thread Lukáš Czerner
On Thu, 29 Apr 2010, John Baldwin wrote: > Date: Thu, 29 Apr 2010 14:18:09 -0400 > From: John Baldwin > To: freebsd-hackers@freebsd.org > Cc: Lukáš Czerner > Subject: Re: ioctl, copy string from user > > On Thursday 29 April 2010 1:52:45 pm Lukáš Czerner wrote: > &g

Re: ioctl, copy string from user

2010-04-29 Thread Lukáš Czerner
On Thu, 29 Apr 2010, John Baldwin wrote: > > > > > > On Thursday 29 April 2010 1:52:45 pm Lukáš Czerner wrote: > > > > Hi, > > > > > > > > I know that there are plenty of examples in the kernel code, but I > > > > just can not ge

Re: ioctl, copy string from user

2010-04-29 Thread Lukáš Czerner
On Thu, 29 Apr 2010, Lukáš Czerner wrote: > Date: Thu, 29 Apr 2010 22:28:31 +0200 (CEST) > From: Lukáš Czerner > To: John Baldwin > Cc: Lukáš Czerner , freebsd-hackers@freebsd.org > Subject: Re: ioctl, copy string from user > > On Thu, 29 Apr 2010, John Baldwin wrote

Re: ioctl, copy string from user

2010-04-29 Thread Lukáš Czerner
On Thu, 29 Apr 2010, John Baldwin wrote: > Date: Thu, 29 Apr 2010 16:56:12 -0400 > From: John Baldwin > To: Lukáš Czerner > Cc: freebsd-hackers@freebsd.org > Subject: Re: ioctl, copy string from user > > On Thursday 29 April 2010 4:28:31 pm Lukáš Czerner wrote: > >

Re: ioctl, copy string from user

2010-04-29 Thread Lukáš Czerner
On Thu, 29 Apr 2010, Ryan Stone wrote: > Date: Thu, 29 Apr 2010 17:19:41 -0400 > From: Ryan Stone > To: Lukáš Czerner > Cc: freebsd-hackers@freebsd.org > Subject: Re: ioctl, copy string from user > > > Apparently I need to tell ioctl how big is the variable I am >