RTEMS 6.1-rc2
|
JFFS2 flash device control. More...
#include <jffs2.h>
Data Fields | |
uint32_t | block_size |
The size in bytes of the erasable unit of the flash device. | |
uint32_t | flash_size |
The size in bytes of the flash device. | |
uint32_t | write_size |
The size in bytes of the minimum write size for the flash device. | |
rtems_jffs2_flash_read | read |
Read from flash operation. | |
rtems_jffs2_flash_write | write |
Write to flash operation. | |
rtems_jffs2_flash_erase | erase |
Flash erase operation. | |
rtems_jffs2_flash_block_is_bad | block_is_bad |
Flash bad block check operation. | |
rtems_jffs2_flash_block_mark_bad | block_mark_bad |
Flash bad block mark operation. | |
rtems_jffs2_flash_oob_write | oob_write |
Flash oob bytes write operation. | |
rtems_jffs2_flash_oob_read | oob_read |
Flash oob bytes read operation. | |
rtems_jffs2_flash_get_oob_size | get_oob_size |
Flash get oob bytes per page operation. | |
rtems_jffs2_flash_destroy | destroy |
Flash destroy operation. | |
dev_t | device_identifier |
The device identifier of the flash device. | |
rtems_jffs2_trigger_garbage_collection | trigger_garbage_collection |
Trigger garbage collection operation. | |
JFFS2 flash device control.
rtems_jffs2_flash_destroy rtems_jffs2_flash_control::destroy |
Flash destroy operation.
This operation is optional and the pointer may be NULL
.
dev_t rtems_jffs2_flash_control::device_identifier |
The device identifier of the flash device.
It is used in combination with the inode number to uniquely identify a file system node in the system.
uint32_t rtems_jffs2_flash_control::flash_size |
The size in bytes of the flash device.
It must be an integral multiple of the block size. The flash device must have at least five blocks.
rtems_jffs2_trigger_garbage_collection rtems_jffs2_flash_control::trigger_garbage_collection |
Trigger garbage collection operation.
This operation is optional and may be NULL. This operation should wake up a garbage collection thread. The garbage collection thread should use the RTEMS_JFFS2_ON_DEMAND_GARBAGE_COLLECTION IO control to carry out the work.
uint32_t rtems_jffs2_flash_control::write_size |
The size in bytes of the minimum write size for the flash device.
It must be an integral divisor into the block size. This is only applicable for NAND devices.