summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/jffs2/include/rtems/jffs2.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-06-10 10:56:55 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-06-13 16:07:46 +0200
commit73bf499ce7710ff8e75833042f88d1ff5b3e84fa (patch)
tree96a60b16f8d9874bdf124ec1e7f935fcc08c6460 /cpukit/libfs/src/jffs2/include/rtems/jffs2.h
parentscore: Delete _Thread_Set_transient() (diff)
downloadrtems-73bf499ce7710ff8e75833042f88d1ff5b3e84fa.tar.bz2
JFFS2: Add device identifier for the flash device
It is used in combination with the inode number to uniquely identify a file system node in the system.
Diffstat (limited to 'cpukit/libfs/src/jffs2/include/rtems/jffs2.h')
-rw-r--r--cpukit/libfs/src/jffs2/include/rtems/jffs2.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/cpukit/libfs/src/jffs2/include/rtems/jffs2.h b/cpukit/libfs/src/jffs2/include/rtems/jffs2.h
index e69fc20363..7b2f4d5de2 100644
--- a/cpukit/libfs/src/jffs2/include/rtems/jffs2.h
+++ b/cpukit/libfs/src/jffs2/include/rtems/jffs2.h
@@ -118,7 +118,8 @@ typedef struct rtems_jffs2_flash_control rtems_jffs2_flash_control;
* .flash_size = FLASH_SIZE,
* .read = flash_read,
* .write = flash_write,
- * .erase = flash_erase
+ * .erase = flash_erase,
+ * .device_identifier = 0xc01dc0fe
* }
* };
*
@@ -265,6 +266,14 @@ struct rtems_jffs2_flash_control {
* This operation is optional and the pointer may be @c NULL.
*/
rtems_jffs2_flash_destroy destroy;
+
+ /**
+ * @brief 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.
+ */
+ dev_t device_identifier;
};
typedef struct rtems_jffs2_compressor_control rtems_jffs2_compressor_control;