From: Kumar SANGHVI <kumar.sanghvi@stericsson.com>
To: "Rémi Denis-Courmont" <remi@remlab.net>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>,
Linus WALLEIJ <linus.walleij@stericsson.com>,
Sudeep DIVAKARAN <sudeep.divakaran@stericsson.com>,
Gulshan KARMANI <gulshan.karmani@stericsson.com>
Subject: Re: Query on usage of Netlink
Date: Fri, 8 Oct 2010 16:01:44 +0530 [thread overview]
Message-ID: <20101008103142.GA16460@bnru01.bnr.st.com> (raw)
In-Reply-To: <1b4c783a02b46d7da4e308699a41856c@chewa.net>
Hi Rémi Denis-Courmontt,
On Fri, Oct 08, 2010 at 12:14:44 +0200, Rémi Denis-Courmont wrote:
>
> On Fri, 8 Oct 2010 14:21:28 +0530, Kumar SANGHVI
> <kumar.sanghvi@stericsson.com> wrote:
> > We have a requirement where-in we want to communicate the status of
> > modem (whether modem is online or offline) from linux driver to
> > user-space components. So that user-space components stop sending data
> > to linux driver for communicating with modem, in case modem goes
> > offline.
>
> Is the modem control state machine in kernel space, as for say, 802.11
> devices?
State machine to keep track of current modem state is in kernel driver.
Kernel driver can know when modem goes offline or when modem is back
online.
> > We have decided to use the netlink mechanism to achieve this. We intend
> > to send an integer value, defined in enum, to user-space indicating the
> > current modem status.
> (...)
> > Or should we define a custom Netlink type in include/linux/netlink.h?
>
> Did you consider using kobject and uevents (which are internally running on
> top of Netlink)?
Yes. However, I believe kobject and uevents require some user-space
daamon like udev which can dispatch the specific uevents to user-space
apps. This user-space daemon then becomes something application
framework specific.
Another option is that user-space app itself open up a netlink socket of type
KOBJECT_UEVENT. But then, user-space will have to filter out
un-necessary uevents out of it.
Best regards,
Kumar.
prev parent reply other threads:[~2010-10-08 10:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-08 8:51 Query on usage of Netlink Kumar SANGHVI
2010-10-08 10:14 ` Rémi Denis-Courmont
2010-10-08 10:31 ` Kumar SANGHVI [this message]
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=20101008103142.GA16460@bnru01.bnr.st.com \
--to=kumar.sanghvi@stericsson.com \
--cc=gulshan.karmani@stericsson.com \
--cc=linus.walleij@stericsson.com \
--cc=netdev@vger.kernel.org \
--cc=remi@remlab.net \
--cc=srinidhi.kasagar@stericsson.com \
--cc=sudeep.divakaran@stericsson.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).