/* * These are exported solely for the purpose of mtd_blkdevs.c and mtdchar.c. * You should not use them for _anything_ else. */externstructmutexmtd_table_mutex;structmtd_info*__mtd_next_device(inti);intadd_mtd_device(structmtd_info*mtd);intdel_mtd_device(structmtd_info*mtd);intadd_mtd_partitions(structmtd_info*,conststructmtd_partition*,int);intdel_mtd_partitions(structmtd_info*);intparse_mtd_partitions(structmtd_info*master,constchar*const*types,structmtd_partition**pparts,structmtd_part_parser_data*data);int__initinit_mtdchar(void);void__exitcleanup_mtdchar(void);#define mtd_for_each_device(mtd) \ for ((mtd) = __mtd_next_device(0); \ (mtd) != NULL; \ (mtd) = __mtd_next_device(mtd->index + 1))