Function esp_idf_svc::sys::esp_partition_find
source ยท pub unsafe extern "C" fn esp_partition_find(
type_: u32,
subtype: u32,
label: *const i8,
) -> *mut esp_partition_iterator_opaque_
Expand description
@brief Find partition based on one or more parameters
@param type Partition type, one of esp_partition_type_t values or an 8-bit unsigned integer. To find all partitions, no matter the type, use ESP_PARTITION_TYPE_ANY, and set subtype argument to ESP_PARTITION_SUBTYPE_ANY. @param subtype Partition subtype, one of esp_partition_subtype_t values or an 8-bit unsigned integer. To find all partitions of given type, use ESP_PARTITION_SUBTYPE_ANY. @param label (optional) Partition label. Set this value if looking for partition with a specific name. Pass NULL otherwise.
@return iterator which can be used to enumerate all the partitions found, or NULL if no partitions were found. Iterator obtained through this function has to be released using esp_partition_iterator_release when not used any more.