Document number
205065
Version
Rev. N
Issue date
2019-02-04
Sirius OBC and TCM User Manual
Page
56
of
174
Return value
Description
>0
Number of bytes that were
written.
- 1
see
errno
values
errno values
EBADF
The file descriptor
fd
is not an
open file descriptor
EINVAL
Page offset set in
lseek
is out
of range or
nbytes
is too large
and reaches a page that is out
of range.
EAGAIN
Driver failed to write data. Try
again.
EIO
Failed to write data. Block
should be marked as a bad
block.
5.6.3.6.
int ioctl(…)
Additional supported operations via POSIX Input/Output Control API.
Argument
name
Type
Direction
Description
fd
int
in
File descriptor received at
open.
cmd
ioctl_command_t
in
Command specifier
(varies)
(varies)
(varies)
Command-specific argument
The following return and errno values are common for all commands except.
Return value
Description
0
Operation successful (or block
is marked ok in case of bad
block check)
-EBUSY
Device is busy with previous
read/write operation.
-1
See errno values
errno values
ENODEV
Internal RTEMS error
EIO
Internal RTEMS error