Re: Is there a user space pci rescan method?

From: Jan Dittmer
Date: Fri Sep 24 2004 - 07:43:40 EST


Rolf Eike Beer wrote:
> -changed param "usedonly" to "showunused" so it behaves like fakephp at the
> first look: if you load dummyphp without parameters there are only slots with
> devices in it.

Well, know I get only entries for all devices I don't have!

> + dslot->dev = pci_get_slot(dslot->bus, dslot->devfn);
> +
> + if (showunused || dslot->dev) {
> + retval = 0;
> + goto error_dslot;
> + }

This should probably be !showunused || !dslot->dev ?

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/