On Tue, Oct 12, 2004 at 02:15:42PM +0300, Timo Teräs wrote:Add functions to register class interfaces for network class. Similar to the ones found in scsi subsystem.
And the point is...? For scsi we needed this as a bad hack due to the special nature of the sg driver.
I read Documentation/driver-model/interface.txt and figured that the interface mechanism is meant to be used to add extra attributes for class devices or for similar things like the sg driver.
The doc says that device interfaces are the logical interfaces of device classes that correlate directly to userspace interfaces, like device nodes [or attributes]. Currently, I'd like to have a possibility to add attributes to a net class device from a module and it is best achieved by creating an interface. Are there some reasons why we should not export the interface stuff of net class?
Also (atleast) i2o seems to have a "sysfs interface" for creating the sysfs entries. Maybe it would nice to add attributes the same way for net class devices?
Cheers, Timo
Attachment:
signature.asc
Description: OpenPGP digital signature