From: Kumar SANGHVI <kumar.sanghvi@stericsson.com>
To: <netdev@vger.kernel.org>
Cc: <srinidhi.kasagar@stericsson.com>, <linus.walleij@stericsson.com>,
<kumar.sanghvi@stericsson.com>, <sudeep.divakaran@stericsson.com>,
<gulshan.karmani@stericsson.com>
Subject: Query on usage of Netlink
Date: Fri, 8 Oct 2010 14:21:28 +0530 [thread overview]
Message-ID: <20101008085056.GA13091@bnru01.bnr.st.com> (raw)
Hi All,
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.
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.
For this, we want to know what Netlink message type should we use?
Should we use some existing Netlink type? Will there be any risk of
getting other messages (the ones not sent by our driver) if using
existing Netlink message type? For e.g. if we use the existing type
NETLINK_ROUTE then, user-space may un-necessary receive netlink notification
for route changes.
Or should we define a custom Netlink type in include/linux/netlink.h?
Thank you for suggestions.
Best regards,
Kumar.
next reply other threads:[~2010-10-08 8:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-08 8:51 Kumar SANGHVI [this message]
2010-10-08 10:14 ` Query on usage of Netlink Rémi Denis-Courmont
2010-10-08 10:31 ` Kumar SANGHVI
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=20101008085056.GA13091@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=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 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.