linux-mips
[Top] [All Lists]

Re: open file in kernel mode

To: JinuM <jinum@esntechnologies.co.in>
Subject: Re: open file in kernel mode
From: Ralf Baechle <ralf@linux-mips.org>
Date: Fri, 9 May 2003 17:06:12 +0200
Cc: linux-mips@linux-mips.org
In-reply-to: <AF572D578398634881E52418B28925670EFF20@mail.esn.activedirectory>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <AF572D578398634881E52418B28925670EFF20@mail.esn.activedirectory>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.4.1i
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

<Prev in Thread] Current Thread [Next in Thread>