RE: find struct pci_dev from struct net_device

Hen, Shmulik (shmulik.hen@intel.com)
Thu, 13 Sep 2001 13:34:39 +0300


Just trying to repent by contributing something good back to the community
;-)

Actually, I'm using this exact code and in an open source project too (we
have those too you know).

-----Original Message-----
From: David Woodhouse [mailto:dwmw2@infradead.org]
Sent: Thursday, September 13, 2001 12:42 PM
To: Hen, Shmulik
Cc: 'Sebastian Heidl'; linux-kernel@vger.kernel.org
Subject: Re: find struct pci_dev from struct net_device

shmulik.hen@intel.com said:
> Take the value of dev->base_addr, mask it's lowest 4 bits, do a scan
> of all PCI net devices and in each PCI device try to match to each of
> the 6 address regs:

We have to assume this isn't a deliberate attempt to mislead, and that you
really do things like this in your own code.

I suspect that whatever chance there was of someone trying to help out some
poor user unfortunate or ignorant enough to use the binary-only modules that
you are working on has just bitten the dust.

--
dwmw2

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