Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S268723AbUIXMwp (ORCPT ); Fri, 24 Sep 2004 08:52:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S268717AbUIXMwp (ORCPT ); Fri, 24 Sep 2004 08:52:45 -0400 Received: from mail.sf-mail.de ([62.27.20.61]:11939 "EHLO mail.sf-mail.de") by vger.kernel.org with ESMTP id S268723AbUIXMwn (ORCPT ); Fri, 24 Sep 2004 08:52:43 -0400 From: Rolf Eike Beer To: Jan Dittmer Subject: Re: Is there a user space pci rescan method? Date: Fri, 24 Sep 2004 14:59:49 +0200 User-Agent: KMail/1.7 References: <200409241241.19654@bilbo.math.uni-mannheim.de> <415415BD.4030007@ppp0.net> In-Reply-To: <415415BD.4030007@ppp0.net> Cc: linux-kernel@vger.kernel.org, Greg KH , Hotplug List MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200409241459.50579@bilbo.math.uni-mannheim.de> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1021 Lines: 29 Am Freitag, 24. September 2004 14:40 schrieben Sie: > 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! There was a device mask but I decided this was too ugly and ripped it out. Maybe it would make sense to have a parameter with an array of buses you want to see completely or something like this. > > + 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 ? Yes. Error in boolean simplification. Eike - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/