write individual words to the configuration space of a
int _CA_PCI_Write_Config_Word( unsigned busnum,
char *bufptr );
This function writes individual words to the configuration space of
the specified device.
The arguments are as follows:
- the bus number
- the device or function ID.
The device number is in bits 7 through 3, and the function number
in bits 2 through 0.
- the offset into the configuration space. This must be aligned
to a word boundary (that is 0, 2, 4, ..., 254)
- the number of words to write
- a pointer to a buffer containing the data to be written into the
- the device or function was found
- an invalid register offset was given
When you use the _CA_PCI_... functions:
- Your program must be linked for
privity level 1, and the process must be run by the superuser
(root) or a
setuid program that's owned by the superuser but started by a
For more information on privity, see
-T option or the Linker
- The stack size must be less than 64K.