mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Devfs and driverfs
@ 2002-06-05 20:24 Simon Turvey
  2002-06-05 20:31 ` Dave Jones
  2002-06-05 20:35 ` Patrick Mochel
  0 siblings, 2 replies; 3+ messages in thread
From: Simon Turvey @ 2002-06-05 20:24 UTC (permalink / raw)
  To: Linux Kernel Mailing List

I apologise if this is a trivial question but I was hoping someone could
explain or point me in the direction of more info.

I understand the purpose and reason for devfs but I cannot find any info on
driverfs.  What's it for?

Thanks,
    Simon



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Devfs and driverfs
  2002-06-05 20:24 Devfs and driverfs Simon Turvey
@ 2002-06-05 20:31 ` Dave Jones
  2002-06-05 20:35 ` Patrick Mochel
  1 sibling, 0 replies; 3+ messages in thread
From: Dave Jones @ 2002-06-05 20:31 UTC (permalink / raw)
  To: Simon Turvey; +Cc: Linux Kernel Mailing List

On Wed, Jun 05, 2002 at 09:24:32PM +0100, Simon Turvey wrote:
 > I apologise if this is a trivial question but I was hoping someone could
 > explain or point me in the direction of more info.
 > 
 > I understand the purpose and reason for devfs but I cannot find any info on
 > driverfs.  What's it for?

driverfs is a 'view by connection' view of everything in the system.
It useful for a number of things, from Power management to hinv type
tools.  Read more at Documentation/driver-model.txt

        Dave

-- 
| Dave Jones.        http://www.codemonkey.org.uk
| SuSE Labs

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Devfs and driverfs
  2002-06-05 20:24 Devfs and driverfs Simon Turvey
  2002-06-05 20:31 ` Dave Jones
@ 2002-06-05 20:35 ` Patrick Mochel
  1 sibling, 0 replies; 3+ messages in thread
From: Patrick Mochel @ 2002-06-05 20:35 UTC (permalink / raw)
  To: Simon Turvey; +Cc: Linux Kernel Mailing List


On Wed, 5 Jun 2002, Simon Turvey wrote:

> I apologise if this is a trivial question but I was hoping someone could
> explain or point me in the direction of more info.
> 
> I understand the purpose and reason for devfs but I cannot find any info on
> driverfs.  What's it for?

There is some documentation in Documentation/filesystems/driverfs.txt. It 
is a bit outdated, but the general purpose of it should be in there. 

Basically, driverfs is a filesystem that maps onto the global device tree. 
Each device found in the system gets a directory in driverfs. In this 
directory, ascii-based files can be created that export device parameters 
(kind of an ascii-based ioctl). 

Files can be created by the bus the device resides on, by a driver that 
binds to the device, or by the class the device registers with. 

In addition to the global device tree, driverfs now exports a flat listing
of bus types in the system. Each bus type gets a directory, which it is 
free to create interface files in. It also a has a devices directory and a 
drivers directory. The former has symlinks for all the devices found on 
that bus type that point to each device's directory in the physical 
hierarchical layout. The drivers directory contains a directory for each 
driver for that bus type. In those directories, drivers may create files 
to export driver-specific parameters (that control the entire driver, not 
an individual device). 

	-pat


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-06-05 20:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-05 20:24 Devfs and driverfs Simon Turvey
2002-06-05 20:31 ` Dave Jones
2002-06-05 20:35 ` Patrick Mochel

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®