Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/p/pccard_raw_read.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/p/pccard_raw_read.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/p/pccard_raw_read.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/p/pccard_raw_read.html on line 8
Read the raw CIS data from the PC Card
#include <sys/pccard.h>
ssize_t pccard_raw_read( pccard_t handle,
int socket,
int type,
unsigned addr,
ssize_t len,
void* buf );
- handle
- The handle returned by
pccard_attach().
- socket
- Contains both the socket number as well as the function within the socket.
This is achieved by shifting the function number left 8 bits and ORing it with the socket number.
The socket number is zero-based.
- type
- The type of memory that you want to read. Valid values are:
- _PCCARD_MEMTYPE_COMMON
- _PCCARD_MEMTYPE_ATTRIBUTE
- addr
- The memory address that you want to read from the CIS.
- len
- The size of the memory that you want to read.
- buf
- A pointer to a buffer where the function can store the information that
it reads from the PC Card.
libpccard
Use the -l pccard option to
qcc
to link against this library.
The pccard_raw_read() function returns the raw
CIS (Card Information Structure) data from the PC Card.
- A positive integer
- Success. The length read is returned.
- -1
- An error occurred
(errno is set).
- EBADF
- Invalid handle parameter.
- ENODEV
- Invalid socket parameter.
See pccard_arm().
QNX Neutrino
Safety: | |
Cancellation point |
Yes |
Interrupt handler |
No |
Signal handler |
Yes |
Thread |
Yes |
pccard_arm(),
pccard_attach(),
pccard_detach(),
pccard_info(),
pccard_lock(),
pccard_unlock()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/p/pccard_raw_read.html on line 189
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/p/pccard_raw_read.html on line 189