linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Regarding to CPU hotplug
@ 2007-09-10  5:31 Omprakash Vishnoi
  2007-09-10  7:13 ` Greg KH
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Omprakash Vishnoi @ 2007-09-10  5:31 UTC (permalink / raw)
  To: linux-hotplug


 Hi All,
       I read the doc. Linux Symposium "Udev-A userspace implementation of
devfs",there i understood,i have to make   rulefile in "/etc/udev/rule.d/"
for CPU  hotplug,but how can i know which CPU getting add or
removed.Acctually       as in my project,we want notification for CPU's
getting remove or add at user  level.

      pls tell me what procedure i have to follow,And how can i know which
CPU getting remove or add.

Regards
Omprakash Vishnoi



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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] 5+ messages in thread

* Re: Regarding to CPU hotplug
  2007-09-10  5:31 Regarding to CPU hotplug Omprakash Vishnoi
@ 2007-09-10  7:13 ` Greg KH
  2007-09-10  8:36 ` Omprakash Vishnoi
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2007-09-10  7:13 UTC (permalink / raw)
  To: linux-hotplug

On Mon, Sep 10, 2007 at 10:49:52AM +0530, Omprakash Vishnoi wrote:
> 
>  Hi All,
>        I read the doc. Linux Symposium "Udev-A userspace implementation of
> devfs",there i understood,i have to make   rulefile in "/etc/udev/rule.d/"
> for CPU  hotplug,but how can i know which CPU getting add or
> removed.Acctually       as in my project,we want notification for CPU's
> getting remove or add at user  level.
> 
>       pls tell me what procedure i have to follow,And how can i know which
> CPU getting remove or add.

I think you can just listen for the dbus events coming from HAL that
show the cpus going up and down.  Have you tried looking at the events
that happen when you do this to the machine?

thanks,

greg k-h

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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] 5+ messages in thread

* Re: Regarding to CPU hotplug
  2007-09-10  5:31 Regarding to CPU hotplug Omprakash Vishnoi
  2007-09-10  7:13 ` Greg KH
@ 2007-09-10  8:36 ` Omprakash Vishnoi
  2007-09-10 14:08 ` Greg KH
  2007-09-10 22:46 ` Kay Sievers
  3 siblings, 0 replies; 5+ messages in thread
From: Omprakash Vishnoi @ 2007-09-10  8:36 UTC (permalink / raw)
  To: linux-hotplug

Hi Greg,

        I m talking about user space,can u tell me how can i listen dbus
event,How can i see event coming from HAL i don't know,can u tell me please
in broad way.No i didn't try to those event.I know only about /udev/
directory and how to write rule in rule.d directory.

pls tell me what is the approch should i prefer.

Best Regards
Omprakash Vishnoi



                                                                           
             Greg KH                                                       
             <greg@kroah.com>                                              
                                                                        To 
             10/09/2007 12:43          Omprakash Vishnoi/India/IBM@IBMIN   
                                                                        cc 
                                       linux-hotplug-devel@lists.sourcefor 
                                       ge.net                              
                                                                   Subject 
                                       Re: Regarding to CPU hotplug        
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




On Mon, Sep 10, 2007 at 10:49:52AM +0530, Omprakash Vishnoi wrote:
>
>  Hi All,
>        I read the doc. Linux Symposium "Udev-A userspace implementation
of
> devfs",there i understood,i have to make   rulefile in
"/etc/udev/rule.d/"
> for CPU  hotplug,but how can i know which CPU getting add or
> removed.Acctually       as in my project,we want notification for CPU's
> getting remove or add at user  level.
>
>       pls tell me what procedure i have to follow,And how can i know
which
> CPU getting remove or add.

I think you can just listen for the dbus events coming from HAL that
show the cpus going up and down.  Have you tried looking at the events
that happen when you do this to the machine?

thanks,

greg k-h



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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] 5+ messages in thread

* Re: Regarding to CPU hotplug
  2007-09-10  5:31 Regarding to CPU hotplug Omprakash Vishnoi
  2007-09-10  7:13 ` Greg KH
  2007-09-10  8:36 ` Omprakash Vishnoi
@ 2007-09-10 14:08 ` Greg KH
  2007-09-10 22:46 ` Kay Sievers
  3 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2007-09-10 14:08 UTC (permalink / raw)
  To: linux-hotplug


A: http://en.wikipedia.org/wiki/Top_post
Q: Were do I find info about this thing called top-posting?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

A: No.
Q: Should I include quotations after my reply?


On Mon, Sep 10, 2007 at 01:54:46PM +0530, Omprakash Vishnoi wrote:
> Hi Greg,
> 
>         I m talking about user space,can u tell me how can i listen dbus
> event,How can i see event coming from HAL

dbus and HAL are userspace things, go see their documentation for how to
do this properly, it is not a kernel issue.

> i don't know,can u tell me please in broad way.No i didn't try to
> those event.I know only about /udev/ directory and how to write rule
> in rule.d directory.
> 
> pls tell me what is the approch should i prefer.

Do whatever works properly for you :)

good luck,

greg k-h

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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] 5+ messages in thread

* Re: Regarding to CPU hotplug
  2007-09-10  5:31 Regarding to CPU hotplug Omprakash Vishnoi
                   ` (2 preceding siblings ...)
  2007-09-10 14:08 ` Greg KH
@ 2007-09-10 22:46 ` Kay Sievers
  3 siblings, 0 replies; 5+ messages in thread
From: Kay Sievers @ 2007-09-10 22:46 UTC (permalink / raw)
  To: linux-hotplug

On 9/10/07, Omprakash Vishnoi <ovishnoi@in.ibm.com> wrote:
>        I read the doc. Linux Symposium "Udev-A userspace implementation of
> devfs",there i understood,i have to make   rulefile in "/etc/udev/rule.d/"
> for CPU  hotplug,but how can i know which CPU getting add or
> removed.Acctually       as in my project,we want notification for CPU's
> getting remove or add at user  level.
>
>       pls tell me what procedure i have to follow,And how can i know which
> CPU getting remove or add.

Run:
  udevmonitor --env
while adding/removing a CPU. What does it print?

Kay

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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] 5+ messages in thread

end of thread, other threads:[~2007-09-10 22:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-10  5:31 Regarding to CPU hotplug Omprakash Vishnoi
2007-09-10  7:13 ` Greg KH
2007-09-10  8:36 ` Omprakash Vishnoi
2007-09-10 14:08 ` Greg KH
2007-09-10 22:46 ` 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).