Re: [RFClue] pci_get_device, new driver model

From: Alan Cox
Date: Fri Oct 07 2005 - 13:08:44 EST


On Gwe, 2005-10-07 at 10:18 -0700, William D Waddington wrote:
> Is it ever possible that the hotplug stuff will try to remove and re-add
> one (or all) of my boards when there _hasn't_ been a physical change or
> power cycle/reboot/driver reload/whatever.

Only if the user does it deliberately.

> Still not quite clear how to assocuiate instance/minor #s with boards.
> Do I just keep a global counter and bump it each time probe (or init)
> gets called for each board? Hence my worry above.

It really is up to you. Most drivers just issue the first free minor
number.

Alan
-
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/