Re: File read
I wrote some functions for file handling in kernel module. Check the source : http://linuxkernel.to/klib/klib/src/fileio.c (The basic idea is from khttpd) This is part of my personal klib (kernel library) project. You can download the full source : http://klib.sourceforge.net/download/klib.tar.gz *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* Lee, Ho. Software Engineer, Embedded Linux Dep, LinuxOne ICQ : #52017992, Mail : [EMAIL PROTECTED], [EMAIL PROTECTED] Homepage : http://flyduck.com, http://linuxkernel.to Anil Kumar Wrote: >How do i read file within the kernel modules. I hope we can't use the FS >open... calls within kernel. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: File read
I wrote some functions for file handling in kernel module. Check the source : http://linuxkernel.to/klib/klib/src/fileio.c (The basic idea is from khttpd) This is part of my personal klib (kernel library) project. You can download the full source : http://klib.sourceforge.net/download/klib.tar.gz *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* Lee, Ho. Software Engineer, Embedded Linux Dep, LinuxOne ICQ : #52017992, Mail : [EMAIL PROTECTED], [EMAIL PROTECTED] Homepage : http://flyduck.com, http://linuxkernel.to Anil Kumar Wrote: How do i read file within the kernel modules. I hope we can't use the FS open... calls within kernel. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: File read.
On 28-May-2001 Mike Castle wrote: > On Mon, May 28, 2001 at 11:26:31AM -0700, Davide Libenzi wrote: >> >> On 28-Jun-2001 Anil Kumar wrote: >> > hi, >> > How do i read file within the kernel modules. I hope we can't use the FS >> > open... calls within kernel. >> >> You can access fs methods directly. > > But generally you don't want to. I usually don't but, you know, usually people like to know that they could ... - Davide - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: File read.
On Mon, May 28, 2001 at 11:26:31AM -0700, Davide Libenzi wrote: > > On 28-Jun-2001 Anil Kumar wrote: > > hi, > > How do i read file within the kernel modules. I hope we can't use the FS > > open... calls within kernel. > > You can access fs methods directly. But generally you don't want to. Use a user mode application to feed you the data instead. mrc -- Mike Castle Life is like a clock: You can work constantly [EMAIL PROTECTED] and be right all the time, or not work at all www.netcom.com/~dalgoda/ and be right at least twice a day. -- mrc We are all of us living in the shadow of Manhattan. -- Watchmen - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
RE: File read.
On 28-Jun-2001 Anil Kumar wrote: > hi, > How do i read file within the kernel modules. I hope we can't use the FS > open... calls within kernel. You can access fs methods directly. Look at this newbie article : http://www.linux-mag.com/2000-11/gear_01.html - Davide - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
RE: File read.
On 28-Jun-2001 Anil Kumar wrote: hi, How do i read file within the kernel modules. I hope we can't use the FS open... calls within kernel. You can access fs methods directly. Look at this newbie article : http://www.linux-mag.com/2000-11/gear_01.html - Davide - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: File read.
On Mon, May 28, 2001 at 11:26:31AM -0700, Davide Libenzi wrote: On 28-Jun-2001 Anil Kumar wrote: hi, How do i read file within the kernel modules. I hope we can't use the FS open... calls within kernel. You can access fs methods directly. But generally you don't want to. Use a user mode application to feed you the data instead. mrc -- Mike Castle Life is like a clock: You can work constantly [EMAIL PROTECTED] and be right all the time, or not work at all www.netcom.com/~dalgoda/ and be right at least twice a day. -- mrc We are all of us living in the shadow of Manhattan. -- Watchmen - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: File read.
On 28-May-2001 Mike Castle wrote: On Mon, May 28, 2001 at 11:26:31AM -0700, Davide Libenzi wrote: On 28-Jun-2001 Anil Kumar wrote: hi, How do i read file within the kernel modules. I hope we can't use the FS open... calls within kernel. You can access fs methods directly. But generally you don't want to. I usually don't but, you know, usually people like to know that they could ... - Davide - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/