BSP and Device Driver Development Guide
This corresponds to the driver write call. After validating the minor
number and arguments, this call enables writes to the specified
memory area by invoking the "enable writes handler", then unprotecting
the memory area, and finally actually writing to the indicated memory
area. When invoked the argument_block
is actually a pointer to
the following structure type:
typedef struct { rtems_unsigned32 offset; void *buffer; rtems_unsigned32 length; rtems_unsigned32 status; } Non_volatile_memory_Driver_arguments;
The driver writes length
bytes from buffer
and
writes them to the non-volatile memory starting at offset
into
the partition. The result is returned in status
.
After the write operation is complete, the "disable writes handler" is invoked to protect the memory area again.
BSP and Device Driver Development Guide
Copyright © 1988-2004 OAR Corporation