MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / fal_partition_find

Function fal_partition_find

components/fal/src/fal_partition.c:330–346  ·  view source on GitHub ↗

* find the partition by name * * @param name partition name * * @return != NULL: partition * NULL: not found */

Source from the content-addressed store, hash-verified

328 * NULL: not found
329 */
330const struct fal_partition *fal_partition_find(const char *name)
331{
332 if (!init_ok)
333 return NULL;
334
335 rt_size_t i;
336
337 for (i = 0; i < partition_table_len; i++)
338 {
339 if (!strcmp(name, partition_table[i].name))
340 {
341 return &partition_table[i];
342 }
343 }
344
345 return NULL;
346}
347
348static const struct fal_flash_dev *flash_device_find_by_part(const struct fal_partition *part)
349{

Callers 15

fal_blk_device_createFunction · 0.85
fal_char_device_createFunction · 0.85
falFunction · 0.85
fal_ops_testFunction · 0.85
fal_testFunction · 0.85
ef_port_initFunction · 0.85
fal_sampleFunction · 0.85
flash64k_testFunction · 0.85
flash32k_testFunction · 0.85
ef_port_initFunction · 0.85
ef_port_initFunction · 0.85

Calls

no outgoing calls

Tested by 1

fal_sampleFunction · 0.68