All of lore.kernel.org
 help / color / mirror / Atom feed
From: bjorn@mork.no (Bjørn Mork)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Importance of kobject
Date: Wed, 17 May 2017 12:56:40 +0200	[thread overview]
Message-ID: <878tlvg39z.fsf@miraculix.mork.no> (raw)
In-Reply-To: <CAA2oCOmfqySaKqzMU6BnrPgZkRk+ki99z-Ce5qdPYheQoXvW6w@mail.gmail.com> (Madhu K.'s message of "Wed, 17 May 2017 12:38:03 +0530")

Madhu K <madhu.sk89@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

  parent reply	other threads:[~2017-05-17 10:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-17  7:08 Importance of kobject Madhu K
     [not found] ` <CAJ1xhMUghEO1NLOhmq_O02KHz7YioTWyu=TNLTcQP8aRxAgV8A@mail.gmail.com>
2017-05-17  7:21   ` Fwd: " Alexander Kapshuk
2017-05-17  9:18     ` Rami Rosen
2017-05-17 10:56 ` Bjørn Mork [this message]
2017-05-17 11:34 ` Okash Khawaja
2017-05-17 11:50   ` Greg KH
2017-05-17 18:36     ` Luis de Bethencourt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878tlvg39z.fsf@miraculix.mork.no \
    --to=bjorn@mork.no \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.