Skip to contentSkip to conversation

Help writing FS and proc

DISCUSSION dave 2 participants 3 messages Apr 7, 2003 – Apr 8, 2003

lore
Share & tools
lore

dave

author
#0 lore raw

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. REALISE
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

author
#2 lore raw

----- Original Message -----
From: "Tomas Szepe" <[email protected]>
To: "dave" <[email protected]>
Cc: <[email protected]>
Sent: Monday, April 07, 2003 2:02 PM
Subject: Re: Help writing FS and proc

Quoted 5 lines
Quoted 2 lines

RELASE
REALISE

Third time's the charm?

Will thank you I will now have a driver that is not completed but the spelling is correct :)