lkml.org 
[lkml]   [2003]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Flaw in the driver-model implementation of attributes

> > What is a sysfs "class", as in /sys/class/...?
>
> It is an abstraction. It is a group of objects that implement common
> functionality, and have common attributes and behaviors.

Not quite. A class represents a class of devices, or the function that a
device performs, e.g. disk or sound.

> > What do sysfs classes have in common? How is
> > a /sys/class/ different from a /sys/devices,
> > /sys/bus, etc?
>
> /sys/bus, /sys/block are just special-case classes that get their own
> top-level directory. They could just easily have been put under
> /sys/class/block, /sys/class/bus.

No. If you want to go that far, 'devices' could go under there as well,
and we'd eventually just have one top-level directory: /sys/class :)

The top-level directories in sysfs represent classes of objects, not
necessarily tied to any driver model concepts. The reason it's so
driver-model heavy now is because that's how the whole thing originated.


-pat

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.027 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site