[Previous] [Contents] [Next]

pccard_info()

Obtain socket information from the devp-pccard server

Synopsis:

#include <sys/pccard.h>

int pccard_info( pccard_t handle, 
                 int socket, 
                 struct _pccard_info* info, 
                 unsigned size );

Library:

libpccard

Description:

The pccard_info() function call retrieves socket setup information from the devp-pccard server. The information is returned in the _pccard_info structure. The parameters are:

handle
Obtained from a call to 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.
size
Size of the _pccard_info structure.

See pccard.h for a description of the fields in the _pccard_info structure.

Returns:

A positive integer
Success. The socket parameter is returned.
-1
An error occurred (errno is set).

Errors:

ENODEV
Invalid socket parameter.

Examples:

See pccard_arm().

Classification:

QNX 6

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

See also:

pccard_arm(), pccard_attach()


[Previous] [Contents] [Next]