From b321ae023cdb130f5da7de9b2115b2328f3c6a8b Mon Sep 17 00:00:00 2001 From: Gustavo Henrique Nihei Date: Mon, 9 Aug 2021 15:10:57 -0300 Subject: [PATCH] fs: Add ioctl command for retrieving partition info of a block device Signed-off-by: Gustavo Henrique Nihei --- include/nuttx/fs/ioctl.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/nuttx/fs/ioctl.h b/include/nuttx/fs/ioctl.h index 7eb5118ef37..d02b6c977ed 100644 --- a/include/nuttx/fs/ioctl.h +++ b/include/nuttx/fs/ioctl.h @@ -278,6 +278,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 ***************************************/