le_flash_common.h
Go to the documentation of this file.
28 //--------------------------------------------------------------------------------------------------33 //--------------------------------------------------------------------------------------------------36 //--------------------------------------------------------------------------------------------------41 //--------------------------------------------------------------------------------------------------44 //--------------------------------------------------------------------------------------------------48 //--------------------------------------------------------------------------------------------------51 //--------------------------------------------------------------------------------------------------56 //--------------------------------------------------------------------------------------------------59 //--------------------------------------------------------------------------------------------------63 //--------------------------------------------------------------------------------------------------66 //--------------------------------------------------------------------------------------------------71 //--------------------------------------------------------------------------------------------------74 //--------------------------------------------------------------------------------------------------78 //--------------------------------------------------------------------------------------------------81 //--------------------------------------------------------------------------------------------------85 //--------------------------------------------------------------------------------------------------88 //--------------------------------------------------------------------------------------------------92 //--------------------------------------------------------------------------------------------------95 //--------------------------------------------------------------------------------------------------99 //--------------------------------------------------------------------------------------------------102 //--------------------------------------------------------------------------------------------------106 //--------------------------------------------------------------------------------------------------109 //--------------------------------------------------------------------------------------------------113 //--------------------------------------------------------------------------------------------------126 //--------------------------------------------------------------------------------------------------130 //--------------------------------------------------------------------------------------------------141 //--------------------------------------------------------------------------------------------------145 //--------------------------------------------------------------------------------------------------149 //--------------------------------------------------------------------------------------------------153 //--------------------------------------------------------------------------------------------------157 //--------------------------------------------------------------------------------------------------163 //--------------------------------------------------------------------------------------------------165 (173 //--------------------------------------------------------------------------------------------------177 //--------------------------------------------------------------------------------------------------184 //--------------------------------------------------------------------------------------------------188 //--------------------------------------------------------------------------------------------------195 //--------------------------------------------------------------------------------------------------199 //--------------------------------------------------------------------------------------------------206 //--------------------------------------------------------------------------------------------------213 //--------------------------------------------------------------------------------------------------223 //--------------------------------------------------------------------------------------------------227 //--------------------------------------------------------------------------------------------------235 //--------------------------------------------------------------------------------------------------246 //--------------------------------------------------------------------------------------------------252 //--------------------------------------------------------------------------------------------------261 //--------------------------------------------------------------------------------------------------267 //--------------------------------------------------------------------------------------------------279 //--------------------------------------------------------------------------------------------------291 //--------------------------------------------------------------------------------------------------303 //--------------------------------------------------------------------------------------------------315 //--------------------------------------------------------------------------------------------------317 * Open the UBI volume of an UBI image to be used for the read and write operations. When open for318 * writing and a volumeSize is given, the UBI volume will be adjusted to this size by freeing the329 //--------------------------------------------------------------------------------------------------341 //--------------------------------------------------------------------------------------------------351 //--------------------------------------------------------------------------------------------------359 //--------------------------------------------------------------------------------------------------367 //--------------------------------------------------------------------------------------------------375 //--------------------------------------------------------------------------------------------------384 //--------------------------------------------------------------------------------------------------394 //--------------------------------------------------------------------------------------------------407 //--------------------------------------------------------------------------------------------------421 //--------------------------------------------------------------------------------------------------433 * If the write addresses an UBI volume and more PEBs are required to write the new data, new PEBs444 //--------------------------------------------------------------------------------------------------458 //--------------------------------------------------------------------------------------------------468 //--------------------------------------------------------------------------------------------------484 //--------------------------------------------------------------------------------------------------494 //--------------------------------------------------------------------------------------------------508 //--------------------------------------------------------------------------------------------------511 * If the partition is already an UBI, an error is raised except if the flag isForcedCreate is set525 //--------------------------------------------------------------------------------------------------538 //--------------------------------------------------------------------------------------------------542 * isForcedCreate is set to true. In this case, the whole UBI volume is recreated and the previous545 * Note that the UBI partition should be opened in write-only or read-write mode, else an error is548 * A static volume cannot be extended when mounted, so it is generally used for SQUASHFS or others562 //--------------------------------------------------------------------------------------------------581 //--------------------------------------------------------------------------------------------------585 * Note that the UBI partition should be opened in write-only or read-write mode, else an error is596 //--------------------------------------------------------------------------------------------------struct le_flash_Partition * le_flash_PartitionRef_tDefinition: le_flash_common.h:146struct le_flash_BadImageDetectionHandler * le_flash_BadImageDetectionHandlerRef_tDefinition: le_flash_common.h:154void(* le_flash_BadImageDetectionHandlerFunc_t)(const char *LE_NONNULL imageName, void *contextPtr)Definition: le_flash_common.h:165