Linux MIPS Architecture development
 help / color / mirror / Atom feed
* open file in kernel mode
@ 2003-05-09  5:54 JinuM
  2003-05-09 15:06 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: JinuM @ 2003-05-09  5:54 UTC (permalink / raw)
  To: linux-mips


Hi,

Can anyone help me with this simple problem.

I am trying to write a firmware loader driver. Instead of reading the
firmware as a buffer(predefined array)  we would like to read the firmware
from a file (say /root/firmware). Do we have some function which reads the
file contents in kernel mode.

-Jinu

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: open file in kernel mode
  2003-05-09  5:54 open file in kernel mode JinuM
@ 2003-05-09 15:06 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2003-05-09 15:06 UTC (permalink / raw)
  To: JinuM; +Cc: linux-mips

On Fri, May 09, 2003 at 11:24:25AM +0530, JinuM wrote:

> I am trying to write a firmware loader driver. Instead of reading the
> firmware as a buffer(predefined array)  we would like to read the firmware
> from a file (say /root/firmware). Do we have some function which reads the
> file contents in kernel mode.

This one seems a candidate for an faq ...

Provide some special file in /dev/ and use a small user application to
install the firmware by writing it into that file.

  Ralf

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-09 15:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-09  5:54 open file in kernel mode JinuM
2003-05-09 15:06 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox