diff options
author | Xiaolei Li <xiaolei.li@mediatek.com> | 2018-04-02 16:20:10 +0800 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-04-22 20:07:06 +0200 |
commit | 7cc9aa669a5119a8d70b22c57779d1decd4d0d62 (patch) | |
tree | c48b958a576e6193061c2aa9b2a6400ecf1c35aa /Documentation/ABI | |
parent | c3c9a2c4b94f2c92132298b705a6f5f9dc1ccd3f (diff) | |
download | linux-7cc9aa669a5119a8d70b22c57779d1decd4d0d62.tar.gz linux-7cc9aa669a5119a8d70b22c57779d1decd4d0d62.tar.bz2 linux-7cc9aa669a5119a8d70b22c57779d1decd4d0d62.zip |
mtd: Add sysfs attribute for mtd OOB available size
Expose mtd OOB available size by sysfs file. Then users can get available
OOB size by accessing /sys/class/mtd/mtdX/oobavail.
Signed-off-by: Xiaolei Li <xiaolei.li@mediatek.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Diffstat (limited to 'Documentation/ABI')
-rw-r--r-- | Documentation/ABI/testing/sysfs-class-mtd | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-class-mtd b/Documentation/ABI/testing/sysfs-class-mtd index f34e592301d1..3bc7c0a95c92 100644 --- a/Documentation/ABI/testing/sysfs-class-mtd +++ b/Documentation/ABI/testing/sysfs-class-mtd @@ -232,3 +232,11 @@ Description: of the parent (another partition or a flash device) in bytes. This attribute is absent on flash devices, so it can be used to distinguish them from partitions. + +What: /sys/class/mtd/mtdX/oobavail +Date: April 2018 +KernelVersion: 4.16 +Contact: linux-mtd@lists.infradead.org +Description: + Number of bytes available for a client to place data into + the out of band area. |