That sounds workable as a design.
-- Dave

At 11:22 AM 3/15/2004, Eugene LiS User wrote:

>Anybody want to suggest a patch?  It may be important to reuse the
>lis_pci_dev_t so that a driver can save this pointer and keep it.

What I thought of was:

In all 3 functions (lis_pci_find_device, lis_pci_find_class,
lis_pci_find_slot) once lis_pci_dev entry is found on the
lis_pci_dev_list and before returning its 'p' pointer,
do issue - pci_find_slot((bus, dev_fcn)
and then lis_map_pci_device(p, kp) to re-copy everything again.
That would ensure that lis_pci_dev_p pointer mapped to the latest
pci_dev pointer for this slot.

This fix will 100% work in lis_pci_find_slot() function.

I think it will work OK in other 2 functions, unless I'm missing
something.  My worry is if card of different vendor/class inserted in the same slot, that may screw up things a little.

my 2 cents.
--
Eugene



__________________________________________________________________
Introducing the New Netscape Internet Service.
Only $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp
_______________________________________________
Linux-streams mailing list
[EMAIL PROTECTED]
http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.614 / Virus Database: 393 - Release Date: 3/5/2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.614 / Virus Database: 393 - Release Date: 3/5/2004

Reply via email to