mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: dave <davekern@ihug.co.nz>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: help writing file system
Date: 08 Apr 2003 12:35:53 +0100	[thread overview]
Message-ID: <1049801752.8118.1.camel@dhcp22.swansea.linux.org.uk> (raw)
In-Reply-To: <002501c2fe57$3dfb3b80$0b721cac@stacy>

On Mer, 2003-04-09 at 06:16, dave wrote:
> My report files work like this
>     1. OPEN
>         Memory is allocated and status information is loaded into the memory
>     2. READ
>         Normal read of the memory (report)
>     5. RELASE
>         The report memory is freed
> 
> so now I want my driver when is starts to make an mount point in /proc/lnvrm
> and then

/proc doesnt work that way. /proc works on the basis that each read
generates a new fake set of data, reports it and frees it.

> 1. how do you make a mount point in /proc ?

Just make a directory, you can mount over /proc/foo if you wish

> 2. how do you auto mount that point ?

You dont. You let the user do it

> 3     how do you make a device node in proc ? (I wont use this but it is
> interesting to me)

You dont

All this is actually a lot easier in 2.5 with libfs/sysfs for managing
system objects.

Alan


      reply	other threads:[~2003-04-08 12:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-09  5:16 dave
2003-04-08 11:35 ` Alan Cox [this message]

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=1049801752.8118.1.camel@dhcp22.swansea.linux.org.uk \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=davekern@ihug.co.nz \
    --cc=linux-kernel@vger.kernel.org \
    /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®