pci_strerror()

Updated: May 06, 2022

Get the description of an error code

Synopsis:

#include <pci/pci.h>

const char * const pci_strerror( pci_err_t err );

Arguments:

err
The error code that you want a description of. This argument is of type pci_err_t and can be set to any error code returned by a PCI API function. More information on this data type and the possible error codes is given below.

Library:

libpci

Use the -l pci option to qcc to link against this library.

Description:

The pci_strerror() function returns a string pointer for err. This function never returns NULL.

The err argument is of the enumerated type pci_err_t, defined in pci/pci.h. The meaning of specific error codes varies with the PCI API function from which they're returned; each function's reference describes the meanings of any possible errors.

Returns:

A pointer to the description of the error.

Classification:

QNX Neutrino

Safety:  
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes