更新日期: 2022/06/01 来源: https://gitee.com/weharmony/kernel_liteos_a_note
par_param结构体 参考

分区参数描述符,一个分区既可支持按块访问也可以支持按字符访问,只要有驱动程序就阔以 更多...

#include <mtd_partition.h>

成员变量

mtd_partitionpartition_head
 首个分区,其他分区都挂在.node_info节点上 更多...
 
struct MtdDevflash_mtd
 flash设备描述符,属于硬件驱动层 更多...
 
const struct block_operations * flash_ops
 块方式的操作数据 更多...
 
const struct file_operations_vfs * char_ops
 字符方式的操作数据 更多...
 
CHARblockname
 块设备名称 更多...
 
CHARcharname
 字符设备名称 更多...
 
UINT32 block_size
 块单位(4K),对文件系统而言是按块读取数据,方便和内存页置换 更多...
 

详细描述

分区参数描述符,一个分区既可支持按块访问也可以支持按字符访问,只要有驱动程序就阔以

在文件 mtd_partition.h147 行定义.

结构体成员变量说明

◆ block_size

UINT32 par_param::block_size

块单位(4K),对文件系统而言是按块读取数据,方便和内存页置换

在文件 mtd_partition.h154 行定义.

◆ blockname

CHAR* par_param::blockname

块设备名称

在文件 mtd_partition.h152 行定义.

◆ char_ops

const struct file_operations_vfs* par_param::char_ops

字符方式的操作数据

在文件 mtd_partition.h151 行定义.

◆ charname

CHAR* par_param::charname

字符设备名称

在文件 mtd_partition.h153 行定义.

◆ flash_mtd

struct MtdDev* par_param::flash_mtd

flash设备描述符,属于硬件驱动层

在文件 mtd_partition.h149 行定义.

◆ flash_ops

const struct block_operations* par_param::flash_ops

块方式的操作数据

在文件 mtd_partition.h150 行定义.

◆ partition_head

mtd_partition* par_param::partition_head

首个分区,其他分区都挂在.node_info节点上

在文件 mtd_partition.h148 行定义.


该结构体的文档由以下文件生成: