Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-14-2009, 10:19 AM   #1
LQ Newbie
Registered: Apr 2009
Posts: 16

Rep: Reputation: 0
Wink Regarding Class Devices

Can anyone explain why these class devices concept used?
I have gone thru sysfs this

these /bus is a subsystem in the subsystem we can create Kobjets.

In the tree /sys/bus/i2c in bus we r having Devices and Drivers.

But i have seen that /sys/class/i2c-adapter but why we need class?

we can use /sys/bus/i2c rather than /sys/class?
And can any one give the example for classes?
Old 05-17-2009, 06:47 PM   #2
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 124Reputation: 124
i2c-adapters are a class of device. They are not connected by the i2c bus (in fact, they are normally the endpoint of the bus).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ templated Node class: pointers to different instantated class types jhwilliams Programming 3 08-20-2007 06:20 PM
Realtek 8150 class USB-LAN adapter devices Maidros Solaris / OpenSolaris 1 10-22-2006 06:17 AM
Does derivated class inherit base class destructor (constructor)? kornerr Programming 2 08-23-2006 08:05 AM
Which C++ editor in Linux has the class view/class browser feature imaginationworks Programming 7 05-21-2006 11:09 PM
BlackBox.class & VerifierBug.class virus ??? dalek Linux - Security 4 02-29-2004 08:55 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:17 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration