linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Socket udev events (noobie)
@ 2006-04-09 14:27 Sting Zax
  2006-04-09 14:37 ` Kay Sievers
  2006-04-09 15:13 ` Moshe Yudkowsky
  0 siblings, 2 replies; 3+ messages in thread
From: Sting Zax @ 2006-04-09 14:27 UTC (permalink / raw)
  To: linux-hotplug

Hello,
I saw that in udev.c , when getting socket events
(name_loop->name is "socket:"), than
we call pass_env_to_socket and not runn the program is
in all other cases , where the program name is in
fact name_loop->name  (by calling run_program).
My question is : which are the eventes which their name
is "socket:"?
regards,
Sting


-------------------------------------------------------
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] 3+ messages in thread

* Re: Socket udev events (noobie)
  2006-04-09 14:27 Socket udev events (noobie) Sting Zax
@ 2006-04-09 14:37 ` Kay Sievers
  2006-04-09 15:13 ` Moshe Yudkowsky
  1 sibling, 0 replies; 3+ messages in thread
From: Kay Sievers @ 2006-04-09 14:37 UTC (permalink / raw)
  To: linux-hotplug

On Sun, Apr 09, 2006 at 05:27:21PM +0300, Sting Zax wrote:
> Hello,
> I saw that in udev.c , when getting socket events
> (name_loop->name is "socket:"), than
> we call pass_env_to_socket and not runn the program is
> in all other cases , where the program name is in
> fact name_loop->name  (by calling run_program).
> My question is : which are the eventes which their name
> is "socket:"?

These are not special events, these are RUN keys with the prefix
"socket:" plus the name of an abstract namespace socket where the
event is passed to instead of forking a program.

Udevmonitor is connected like this:
  RUN+="socket:/org/kernel/udev/monitor"

It listens on the socket with the specified name.

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] 3+ messages in thread

* Re: Socket udev events (noobie)
  2006-04-09 14:27 Socket udev events (noobie) Sting Zax
  2006-04-09 14:37 ` Kay Sievers
@ 2006-04-09 15:13 ` Moshe Yudkowsky
  1 sibling, 0 replies; 3+ messages in thread
From: Moshe Yudkowsky @ 2006-04-09 15:13 UTC (permalink / raw)
  To: linux-hotplug


>> My question is : which are the eventes which their name
>> is "socket:"?
> 
> These are not special events, these are RUN keys with the prefix
> "socket:" plus the name of an abstract namespace socket where the
> event is passed to instead of forking a program.
> 
> Udevmonitor is connected like this:
>   RUN+="socket:/org/kernel/udev/monitor"
> 
> It listens on the socket with the specified name.

Are these documented somewhere?
-- 
  Moshe Yudkowsky
  work: http://www.Disaggregate.com
  book: http://www.PebbleAndAvalanche.com


-------------------------------------------------------
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] 3+ messages in thread

end of thread, other threads:[~2006-04-09 15:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-09 14:27 Socket udev events (noobie) Sting Zax
2006-04-09 14:37 ` Kay Sievers
2006-04-09 15:13 ` Moshe Yudkowsky

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).