4.2.5. CA_GET_SLOT_INFO

4.2.5.1. Name

CA_GET_SLOT_INFO

4.2.5.2. Synopsis

int ioctl(fd, CA_GET_SLOT_INFO, struct ca_slot_info *info)

4.2.5.3. Arguments

fd

File descriptor returned by a previous call to open().

info

Pointer to struct ca_slot_info.

4.2.5.4. Description

Returns information about a CA slot identified by ca_slot_info.slot_num.

4.2.5.5. Return Value

On success 0 is returned, and ca_slot_info is filled.

On error -1 is returned, and the errno variable is set appropriately.

ENODEV

the slot is not available.

The generic error codes are described at the Generic Error Codes chapter.