* get user socket message - some example
@ 2006-04-11 15:58 Mark Ryden
2006-04-11 17:31 ` Kay Sievers
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Mark Ryden @ 2006-04-11 15:58 UTC (permalink / raw)
To: linux-hotplug
Hello,
I had looked at the code of uded.c
I udnerstand that when get kernel messages we call
get_netlink_msg().
This messages are sent when events like adding/removing a device or
repartitioning of a disk occur. The kernel is responsoble to send them.
As I understand, there when we get user socket message qw call get_udevd_msg().
My question are: I understand that these events are generated
from user space. Can you give example for generating such a user space event
which will call get_udevd_msg() ?
Regards,
MR
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: get user socket message - some example
2006-04-11 15:58 get user socket message - some example Mark Ryden
@ 2006-04-11 17:31 ` Kay Sievers
2006-04-12 6:18 ` Mark Ryden
2006-04-12 8:40 ` Kay Sievers
2 siblings, 0 replies; 4+ messages in thread
From: Kay Sievers @ 2006-04-11 17:31 UTC (permalink / raw)
To: linux-hotplug
On Tue, Apr 11, 2006 at 06:58:51PM +0300, Mark Ryden wrote:
> Hello,
> I had looked at the code of uded.c
> I udnerstand that when get kernel messages we call
> get_netlink_msg().
> This messages are sent when events like adding/removing a device or
> repartitioning of a disk occur. The kernel is responsoble to send them.
>
> As I understand, there when we get user socket message qw call get_udevd_msg().
>
> My question are: I understand that these events are generated
> from user space. Can you give example for generating such a user space event
> which will call get_udevd_msg() ?
udevcontrol sends messages over this socket. Real event messages have
been sent over this socket in the past from udevsend executed
by /sbin/hotplug, but that codepath is dead and no longer used.
Kay
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x110944&bid$1720&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: get user socket message - some example
2006-04-11 15:58 get user socket message - some example Mark Ryden
2006-04-11 17:31 ` Kay Sievers
@ 2006-04-12 6:18 ` Mark Ryden
2006-04-12 8:40 ` Kay Sievers
2 siblings, 0 replies; 4+ messages in thread
From: Mark Ryden @ 2006-04-12 6:18 UTC (permalink / raw)
To: linux-hotplug
Hello,
So is there is intention to remove this code in future versions?
Mark
On 4/11/06, Kay Sievers <kay.sievers@vrfy.org> wrote:
> On Tue, Apr 11, 2006 at 06:58:51PM +0300, Mark Ryden wrote:
> > Hello,
> > I had looked at the code of uded.c
> > I udnerstand that when get kernel messages we call
> > get_netlink_msg().
> > This messages are sent when events like adding/removing a device or
> > repartitioning of a disk occur. The kernel is responsoble to send them.
> >
> > As I understand, there when we get user socket message qw call get_udevd_msg().
> >
> > My question are: I understand that these events are generated
> > from user space. Can you give example for generating such a user space event
> > which will call get_udevd_msg() ?
>
> udevcontrol sends messages over this socket. Real event messages have
> been sent over this socket in the past from udevsend executed
> by /sbin/hotplug, but that codepath is dead and no longer used.
>
> Kay
>
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: get user socket message - some example
2006-04-11 15:58 get user socket message - some example Mark Ryden
2006-04-11 17:31 ` Kay Sievers
2006-04-12 6:18 ` Mark Ryden
@ 2006-04-12 8:40 ` Kay Sievers
2 siblings, 0 replies; 4+ messages in thread
From: Kay Sievers @ 2006-04-12 8:40 UTC (permalink / raw)
To: linux-hotplug
On Wed, Apr 12, 2006 at 08:18:30AM +0200, Mark Ryden wrote:
> Hello,
> So is there is intention to remove this code in future versions?
Maybe. Why is that interesting for you?
Kay
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x110944&bid$1720&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-04-12 8:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-11 15:58 get user socket message - some example Mark Ryden
2006-04-11 17:31 ` Kay Sievers
2006-04-12 6:18 ` Mark Ryden
2006-04-12 8:40 ` Kay Sievers
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).