1 error message formats, 2 ioctl codes (block), 1 error message formats 2.4.2 ioctl codes (block) – Artesyn MOTLoad Firmware Package User's Manual (February 2015) User Manual

Page 32: Using motload

Advertising
background image

Using MOTLoad

MOTLoad Firmware Package User’s Manual (6806800C24D)

32

2.4.1

Error Message Formats

MOTLoad displays error messages in one of six formats:

function_name(): open(<device_name>) failed, errno=<value>

function_name(): ioctl(<value>) failed, errno=<value>

function_name(): io_operation([device]) failed, errno=<value>

function_name(): error_message, errno=<value>

function_name(): error_message

error_messsage

In some cases, the message format may vary slightly from the above. For these messages, the
format and meaning is identified under the Error Messages section for the affected command.

When the operation attempts to open a device but encounters a failure during the open
process, the open message is displayed and identifies the complete device name (for example,
/dev/ide0/hdisk0

).

When a general IOCTL command fails, the ioctl value identifies the failing I/O operation of a
specific device type; for example, block, terminal, tape, and so on. For an example set of IOCTL
codes, refer to the IOCTL Codes (Block) table (below). It is not necessary to know all the codes
for each type of device since the individual error message sections define the meaning of each
ioctl error message.

2.4.2

IOCTL Codes (Block)

The following table lists the IOCTL codes:

IOBLOCK_IOCTL_GET_DEVICE_TYPE

100

IOBLOCK_IOCTL_STATUS

101

IOBLOCK_IOCTL_RESET

102

IOBLOCK_IOCTL_GET_BLOCK_SIZE

103

IOBLOCK_IOCTL_NBLOCKS

104

IOBLOCK_IOCTL_FORMAT

105

IOBLOCK_IOCTL_SEEK_SET

106

IOBLOCK_IOCTL_SEEK_CURRENT

107

IOBLOCK_IOCTL_SEEK_END

108

Advertising