pci_mux_command()
QNX SDP8.0PCI Server User's GuideAPIConfiguration
Send a command to the PCI connector or multiplexer
Synopsis:
#include <pci/pci_mux.h>
int pci_mux_command( pci_mux_connection_t *hdl,
pci_mux_req_t *request,
pci_mux_req_t **result );
Arguments:
- hdl
- The connection handle from pci_mux_init().
- request
- The request structure, which must begin with pci_mux_req_t as
a header. The real length of the request is
request.len + request.xlen
, whererequest.len
indicates the full length of the fixed sized structure with *request as a header.request.xlen
represents the variable length data. - result
- The receive pointer to the response data, which is stored in lib_mux memory. You should copy any data you want to retain before making any more calls to pci_mux_command().
Library:
libpci
Use the -l pci option to qcc to link against this library.
Description:
The pci_mux_command() function sends a command to the PCI multiplexer or connector and returns a response.
CAUTION:
Currently, this function might not return a reliable API return
value.
Returns:
The API return value, depending on the message type. If the MsgSend() fails, pci_mux_command() returns an error from the MsgSend() errors section.
Classification:
Safety: | |
---|---|
Cancellation point | No |
Signal handler | No |
Thread | Yes |
Page updated: