函数 | |
INT32 | add_mtd_partition (const CHAR *type, UINT32 startAddr, UINT32 length, UINT32 partitionNum) |
Add a partition. 更多... | |
INT32 | delete_mtd_partition (UINT32 partitionNum, const CHAR *type) |
Delete a partition. 更多... | |
Add a partition.
type | [IN] Storage medium type, support "nand" and "spinor" currently. |
startAddr | [IN] Starting address of a partition. |
length | [IN] Partition size. |
partitionNum | [IN] Partition number, less than the value defined by CONFIG_MTD_PATTITION_NUM. |
#-ENODEV | The driver is not found. |
#-EINVAL | Invalid parameter. |
#-ENOMEM | Insufficient memory. |
#ENOERR | The partition is successfully created. |
在文件 mtd_partition.c 第 394 行定义.
Delete a partition.
partitionNum | [IN] Partition number, less than the value defined by CONFIG_MTD_PATTITION_NUM. |
type | [IN] Storage medium type, support "nand" and "spinor" currently. |
#-EINVAL | Invalid parameter. |
#ENOERR | The partition is successfully deleted. |
Delete a partition.
在文件 mtd_partition.c 第 527 行定义.