* Re: help writing file system
2003-04-09 5:16 help writing file system dave
@ 2003-04-08 11:35 ` Alan Cox
0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2003-04-08 11:35 UTC (permalink / raw)
To: dave; +Cc: Linux Kernel Mailing List
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* help writing file system
@ 2003-04-09 5:16 dave
2003-04-08 11:35 ` Alan Cox
0 siblings, 1 reply; 2+ messages in thread
From: dave @ 2003-04-09 5:16 UTC (permalink / raw)
To: linux-kernel
i am writing a 2.4.x device driver LNVRM I was going to use proc for debug
and interface
But proc dose not support report files because it dose not have OPEN and
RELASE functions
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
auto mount my FS also my FS will have whatever status info and a fixed file
in it called
device witch will be a char device node witch will point to my auto assigned
mayor / minor
number I do not want to use 2.4.x vdev as this way just dose it all in one
I have done proc code before but run into lots of brick wills I guest I need
to know
1. how do you make a mount point in /proc ?
2. how do you auto mount that point ?
3 how do you make a device node in proc ? (I wont use this but it is
interesting to me)
also I have written a read / write FS before but this was mainly by locking
at outer peoples work
is there some relay good info on writing a linux FS for free download ? (no
I don't have any CC's)
thank you
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-04-08 12:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-09 5:16 help writing file system dave
2003-04-08 11:35 ` Alan Cox
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®