Re: Writing a driver specific filesystem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 11, 2007 at 12:37:53AM -0700, Mohammad Meraj Molla wrote:
> Hi
> 
> Can anyone point me to any document or code segment that shows how to
> write a driver specific small filesystem (I know drivers can use
> proc/sysfs, but just to get the idea!!!) ? 

Look at the code for securityfs, or debugfs, or usbfs.  All of those are
nice and tiny and "simple".

Do not look at the code for sysfs, it does things that you do not want
to have to do in your driver-based filesystem.

Oh, I wrote an article describing how to do this back in 2003 for
linux.conf.au if you want to take a look at the proceedings.  It will
give you an idea of what is needed, but then look at the newer code
implementations (like debugfs) to see how much simpler it has gotten
since then.

good luck,

greg k-h

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux