Re: Is there a user space pci rescan method?

From: Jan Dittmer
Date: Fri Sep 24 2004 - 07:20:13 EST


Rolf Eike Beer wrote:
> Normally you will just remove and bring back one or two cards in the system
> (e.g. your NIC or sound card, depending on xmms or irc being on top of your
> priority list *g*). So from my point of view it's a good idea to keep the
> slot dirs on remove so you can just go back in your command history and
> replace 0 with 1 to get the device back. I don't see why bus structure or
> whatever may ever change so rescanning the whole bus is IMHO a bit overkill.

My point was, I load dummyphp with showunused=0 and only get dirs for the
slots with devices in them. Now I decide to put a network card (or whatever
I have to spare) in an empty slot, hope that the system doesn't reboot
immediately, and voila I don't have any /sys/bus/pci/slots dir to enable
the slot and have to reboot nevertheless. Or does the pci system a rescan
if I reinsert the module?

Thanks,

Jan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/