fs: Add ioctl command for retrieving partition info of a block device

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
Gustavo Henrique Nihei
2021-08-09 15:10:57 -03:00
committed by Xiang Xiao
parent 1767685a9e
commit e66503788e
+8
View File
@@ -277,6 +277,14 @@
* IN: None
* OUT: None (ioctl return value provides
* success/failure indication). */
#define BIOC_PARTINFO _BIOC(0x000e) /* Retrieve partition information from the
* block device.
* IN: Pointer to writable struct
* partition_info_s in which to
* receive partition information data
* OUT: Partition information structure
* populated with data from the block
* device partition */
/* NuttX MTD driver ioctl definitions ***************************************/