Re: Importance of kobject

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Wed, May 17, 2017 at 8:08 AM, Madhu K <madhu.sk89@xxxxxxxxx> wrote:
> Hi All,
>
> I am kernel newbie, I want to know the importance of kobject, can anybody
> explain the importance of kobject with an example.

To state a not-so-popular analogy, kobjects can also be viewed as root
object in object oriented programming. So a bit like java.lang.Object.
Of course it is not a root object and indeed C is not OO, but this
view helps in thinking about it.

This section from ldd3 lists some of the tasks handled by kobject:
http://www.makelinux.net/ldd3/chp-14-sect-1. So whichever struct
ultimately encapsulates (inherits from) kobject will have those tasks
handled for it for free. This view is in addition to others expressed
here.

HTH
Okash

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



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux