From: Xu Nakajima <xunakaj@yahoo.com>
To: netdev@vger.kernel.org
Subject: RtNetlink in wireless.c and netlink_broadcast(uevent_sock,...) - newbie
Date: Sun, 30 Apr 2006 12:14:56 -0700 (PDT) [thread overview]
Message-ID: <20060430191456.80796.qmail@web38310.mail.mud.yahoo.com> (raw)
Hello,
I saw that in the wireless linux stack, there is usage
of sending messages to user space via the RtNetlink
event channel :
in net/core/wireless.c, wireless_send_event() method
calls rtmsg_iwinfo() which calls
netlink_broadcast(rtnl, skb, 0, RTNLGRP_LINK,
GFP_ATOMIC); (it fills a struct with
rtnetlink_fill_iwinfo before).
On the other hand, I see that for example, in the case
of
sending messeges to userspace udev socket, the
netlink_broadcast() call is with a different
mecahinsm;
In lib/kobject_uevent.c, there is the following call
netlink_broadcast(uevent_sock, skb, 0, 1, GFP_KERNEL);
Is there something special about RtNetlink event
channel
which makes it needed fot wireless.c (for example)?
While udev can use some other mechanism ?
What is special about RtNetlink event channel
in comaprison to non RtNetlink channels?
Regards,
Xu
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
next reply other threads:[~2006-04-30 19:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-30 19:14 Xu Nakajima [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-05-01 17:50 RtNetlink in wireless.c and netlink_broadcast(uevent_sock,...) - newbie Jean Tourrilhes
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=20060430191456.80796.qmail@web38310.mail.mud.yahoo.com \
--to=xunakaj@yahoo.com \
--cc=netdev@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox