path: root/block/partitions/cmdline.h
diff options
authorCai Zhiyong <>2013-09-11 14:20:09 -0700
committerLinus Torvalds <>2013-09-11 15:56:57 -0700
commitbab55417b10c95e6bff8cea315c315adfa009487 (patch)
tree56bfc578d47c7ea786bf6a35bf946f37e9b458b1 /block/partitions/cmdline.h
parented751e683c563be64322b9bfa0f0f7e5da9bd37c (diff)
block: support embedded device command line partition
Read block device partition table from command line. The partition used for fixed block device (eMMC) embedded device. It is no MBR, save storage space. Bootloader can be easily accessed by absolute address of data on the block device. Users can easily change the partition. This code reference MTD partition, source "drivers/mtd/cmdlinepart.c" About the partition verbose reference "Documentation/block/cmdline-partition.txt" [ fix printk text] [ fix error return code in parse_parts()] Signed-off-by: Cai Zhiyong <> Cc: Karel Zak <> Cc: "Wanglin (Albert)" <> Cc: Marius Groeger <> Cc: David Woodhouse <> Cc: Jens Axboe <> Cc: Brian Norris <> Cc: Artem Bityutskiy <> Signed-off-by: Wei Yongjun <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'block/partitions/cmdline.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/block/partitions/cmdline.h b/block/partitions/cmdline.h
new file mode 100644
index 0000000..26e0f8d
--- /dev/null
+++ b/block/partitions/cmdline.h
@@ -0,0 +1,2 @@
+int cmdline_partition(struct parsed_partitions *state);