Importance of kobject

Bjørn Mork bjorn at
Wed May 17 06:56:40 EDT 2017

Madhu K <madhu.sk89 at> writes:

> I am kernel newbie, I want to know the importance of kobject, can anybody
> explain the importance of kobject with an example.

I think the best generic example is that you can write Linux drivers,
using kobjects all over, without ever having to actually worry about
kobjects.  You just use struct device, often without even realizing that
there is a kobject embedded in it.

At least that's all I know about them :-)

If you want code exaples, then "git grep kobj drivers/" will provide
enough for a lifetime.  And more.


More information about the Kernelnewbies mailing list