mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Richard B. Johnson" <root@chaos.analogic.com>
To: Simon Haynes <simon@baydel.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: File access
Date: Thu, 14 Aug 2003 08:07:53 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.53.0308140803430.179@chaos> (raw)
In-Reply-To: <67597854DA5@baydel.com>

On Thu, 14 Aug 2003, Simon Haynes wrote:

> I am currently developing a module which I would like to configure
> via a simple text file.
>
> I cannot seem to find any information on accessing files via a kernel module.
>
> Is this possible and if so how is it done ?
>
> Many Thanks
>
> Simon.

This has become a FAQ. You make your module accept parameters
from an ioctl(). Then you use a user-mode task to read file(s)
and configure your module.


Cheers,
Dick Johnson
Penguin : Linux version 2.4.20 on an i686 machine (797.90 BogoMips).
            Note 96.31% of all statistics are fiction.


  reply	other threads:[~2003-08-14 12:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-14 11:32 Simon Haynes
2003-08-14 12:07 ` Richard B. Johnson [this message]
2003-08-19  9:53   ` Simon Haynes
2003-08-19 12:17     ` Richard B. Johnson
2003-08-19 13:36       ` Simon Haynes
2003-08-19 15:01         ` Richard B. Johnson
2003-08-14 12:19 ` Matti Aarnio
2003-08-14 12:28   ` Muli Ben-Yehuda

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.53.0308140803430.179@chaos \
    --to=root@chaos.analogic.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=simon@baydel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®