Document number
205065
Version
Rev. N
Issue date
2019-02-04
Sirius OBC and TCM User Manual
Page
58
of
174
Return value
Description
-EINVAL
The block number is out of
range
-EIO
Failed to erase block. Block
should be marked as a bad
block
5.6.3.6.7. Read spare area
Reads the spare area with given data.
Return value
Description
-EINVAL
Indicates one or more of:
•
The page number is out of
range
•
Size is 0
•
Size is larger than page
size
•
Size is not a multiple of 4
•
The data or EDAC buffer is
NULL
The data or EDAC buffer is not
4-byte aligned
-EIO
Reading timed out or read
status indicated failure.
5.6.3.7. Write spare area
Writes the given data to the spare area.
Command
Value type
Direction Description
MASSMEM_IO_READ_SPARE_AREA massmem_ioctl_spare_area_args_t*
in/out
Pointer to struct with input
page number specifier, and
destination buffers where
spare area data is to be
stored, see 5.6.2.3
Command
Value type
Direction Description
MASSMEM_IO_WRITE_SPARE_AREA
massmem_ioctl_spare_area_args_t*
in/out
Pointer to struct with page
number specifier, byte offset
and pointer to data which is to
be written, see 5.6.2.3