Madhu K <madhu.s...@gmail.com> 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.


Bjørn

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to