summaryrefslogtreecommitdiff
path: root/Documentation/ABI/testing/sysfs-class-mtd
diff options
context:
space:
mode:
authorDan Ehrenberg <dehrenberg@chromium.org>2015-04-03 01:15:11 +0300
committerBrian Norris <computersforpeace@gmail.com>2015-04-06 03:44:02 +0300
commita62c24d75529118d10c45350c3b75715d52ff574 (patch)
tree6c18ffa557b84ff94dd6dedce302a556766decf7 /Documentation/ABI/testing/sysfs-class-mtd
parent727dc612c46b8f3858537ea23805b3e897cf127e (diff)
downloadlinux-a62c24d75529118d10c45350c3b75715d52ff574.tar.xz
mtd: part: Add sysfs variable for offset of partition
This patch makes a sysfs variable called 'offset' on each partition which contains the offset in bytes from the beginning of the master device that the partition starts. Signed-off-by: Dan Ehrenberg <dehrenberg@chromium.org> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'Documentation/ABI/testing/sysfs-class-mtd')
-rw-r--r--Documentation/ABI/testing/sysfs-class-mtd10
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-class-mtd b/Documentation/ABI/testing/sysfs-class-mtd
index 76ee192f80a0..3b5c3bca9186 100644
--- a/Documentation/ABI/testing/sysfs-class-mtd
+++ b/Documentation/ABI/testing/sysfs-class-mtd
@@ -222,3 +222,13 @@ Description:
The number of blocks that are marked as reserved, if any, in
this partition. These are typically used to store the in-flash
bad block table (BBT).
+
+What: /sys/class/mtd/mtdX/offset
+Date: March 2015
+KernelVersion: 4.1
+Contact: linux-mtd@lists.infradead.org
+Description:
+ For a partition, the offset of that partition from the start
+ of the master device in bytes. This attribute is absent on
+ main devices, so it can be used to distinguish between
+ partitions and devices that aren't partitions.