* RE: File read.
2001-06-28 5:12 File read Anil Kumar
@ 2001-05-28 18:26 ` Davide Libenzi
2001-05-28 18:34 ` Mike Castle
0 siblings, 1 reply; 5+ messages in thread
From: Davide Libenzi @ 2001-05-28 18:26 UTC (permalink / raw)
To: Anil Kumar; +Cc: Linux Kernel
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: File read.
2001-05-28 18:26 ` Davide Libenzi
@ 2001-05-28 18:34 ` Mike Castle
2001-05-28 19:06 ` Davide Libenzi
0 siblings, 1 reply; 5+ messages in thread
From: Mike Castle @ 2001-05-28 18:34 UTC (permalink / raw)
To: Linux Kernel
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
dalgoda@ix.netcom.com 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: File read.
2001-05-28 18:34 ` Mike Castle
@ 2001-05-28 19:06 ` Davide Libenzi
0 siblings, 0 replies; 5+ messages in thread
From: Davide Libenzi @ 2001-05-28 19:06 UTC (permalink / raw)
To: Mike Castle; +Cc: Linux Kernel
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: File read
@ 2001-05-31 16:52 Lee Ho
0 siblings, 0 replies; 5+ messages in thread
From: Lee Ho @ 2001-05-31 16:52 UTC (permalink / raw)
To: linux-kernel
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 : flyduck@linuxone.co.kr, i@flyduck.com
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* File read.
@ 2001-06-28 5:12 Anil Kumar
2001-05-28 18:26 ` Davide Libenzi
0 siblings, 1 reply; 5+ messages in thread
From: Anil Kumar @ 2001-06-28 5:12 UTC (permalink / raw)
To: Linux Kernel
hi,
How do i read file within the kernel modules. I hope we can't use the FS
open... calls within kernel.
thanks
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-05-31 17:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-28 5:12 File read Anil Kumar
2001-05-28 18:26 ` Davide Libenzi
2001-05-28 18:34 ` Mike Castle
2001-05-28 19:06 ` Davide Libenzi
-- strict thread matches above, loose matches on Subject: below --
2001-05-31 16:52 Lee Ho
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox