Skip navigation.
Home
The QNX Community Portal

View topic - multiple calls to pci_attach

multiple calls to pci_attach

For discussion of realtime and/or embedded programming.

multiple calls to pci_attach

Postby corrumpu » Tue Jan 26, 2010 3:54 pm

I have an app that has two pci cards and one of these cards is a carrier card so it has multiple "sub cards".

Is there anything that should be considered when calling pci_attach() multiple times within the same process? The structure of the code (c++) would allow this to happen currently. What issues (if any) would there be doing this?

TIA
--chris
corrumpu
Active Member
 
Posts: 11
Joined: Mon Dec 08, 2008 1:18 pm

RE: multiple calls to pci_attach

Postby Buder » Wed Jan 27, 2010 6:54 am

Hi Chris

Not much info to go on here, but I think that there is actually no problem doing that, but you may consider extracting the "driver" part from your app and starting that as a driver process, that way you may have more flexibility and possiblity to handle multiple tranfers and calls (IRQS) without stoppping your main app. So I believe it will be up to you to consider and take precautions to this.

On the other hand I did not have subcards, we only had two PCI cards and I wrote one driver to each card to which I then communicated with an API/Interface.

Regards

/Jörgen
Buder
Active Member
 
Posts: 35
Joined: Mon Jun 27, 2005 2:08 pm


Return to Realtime and Embedded

Who is online

Users browsing this forum: No registered users and 2 guests