From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Mon, 23 Aug 2004 22:24:07 +0000 Subject: Re: [Pcihpd-discuss] Re: Hotplug SIG Message-Id: <20040823222407.GF4694@kroah.com> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mon, Aug 23, 2004 at 05:11:51PM -0500, Linas Vepstas wrote: > > I am not aware of any single, unified, architecture-independent API > or user-space tools for performing PCI hotplug. If they do exist, > then my ignorance can be blamed on bad documentation. They exist: www.kroah.com/linux/hotplug It's just the dumb ppc64 driver that breaks this tool, the last time I tried it... Oh, and I wrote a tiny bash script that also did the same thing, if you don't like gtk code, if you search the archives. > -- There's a command-line tool I use on powerpc that does things > like blink LED's in order to better identify the PCI slot, so > that you don't actually remove the wrong card. A generic > tool that did this for all arches would be nice. See the program mentioned above. > -- Some people like to "echo 1 > /sys/bus/pci/something" to turn > power on and off for a given PCI slot, but its not obvious that > this is how all the various arches work; nor is it obvious > how to match up a given 'geographical' slot location to a given > /sys/whatever entry. So unifying all this would be nice. That's a arch independant thing, actually, a system independant thing. All the different hardware systems do it differently, but they all export the information in the same way, so the above tool does get the information properly. thanks, greg k-h ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ 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