|
|
Subscribe / Log in / New account

A fresh look at the kernel's device model

A fresh look at the kernel's device model

Posted May 30, 2015 0:15 UTC (Sat) by neilbrown (subscriber, #359)
In reply to: A fresh look at the kernel's device model by Alan.Stern
Parent article: A fresh look at the kernel's device model

> Namely, a device can belong to both a bus and a class

I can see how this is possible. I'm having trouble seeing how it is useful. Is there an example I can look at?

I can almost imagine that a bus might be able to include some of its devices in one class and some in another class. But I think I would either just make them different types, or have two related devices, one in the bus one in the class. Maybe an example will help clarify for me.

Thanks!


to post comments

A fresh look at the kernel's device model

Posted Jun 6, 2015 17:22 UTC (Sat) by Alan.Stern (subscriber, #12437) [Link]

I can't think of any examples. In practice, drivers embed multiple struct devices in their private data structures. Generally one of these devices belongs to a bus and the others to classes.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds