part_get_info_by_name
The interface has the following parameters.
- Synopsis:
int part_get_info_by_name(struct blk_desc *dev_desc, const char *name, struct disk_partition *info);
- Description: The interface is used to find a partition by partition name in all registered partitions and get its partition information.
- Parameter:
- dev_desc: The device descriptor.
- name: The name of the specific partition table entry.
- info: The partition information to query.
- Return:
- Success: The level of the target GPIO interface: 0 as low level, 1 as high level.
- Failure: -1.