6、情况下分别确定了接收的最大长度以及实际写入的长度。Sync:函数, 函数说明:此函数负责将系统缓冲区的内容写回磁盘,以确保数据同步。[cpp] viewplaincopy1.struct mtd_info { 2. u_char type; // 内存技术的类型 3. uint32_t flags; // 标志位 4. uint64_t size; // Total size of the MTD 、mtd 设备的大小 5. 6. /* "Major"
7、 erase size for the device. Na茂ve users may take this 7. * to be the only erase size available, or may use the more detailed 8. * information below if they desire 9. */ 10. uint32_t erasesize; // 主要的擦除块大小 erase size of main block 11
8、. /* Minimal writable flash unit size. In case of NOR flash it is 1 (even 12. * though individual bits can be cleared), in case of NAND flash it is 13. * one NAND page (or half, or one-fourths of it), in case of ECC-ed NOR 14