先上代码
digraph mtd_info{
node [shape=record, fontsize=12, style=filled];
edge[color=blue];
rankdir=LR;
subgraph struct_mtd_info {
node[shape=record style=filled];
color=lightgray;
style=filled;
label = "struct mtd_info";
edge[color="#2e3436"];
node_mtd_info[shape=record,label="<f0>u_char type\
|<f1>uint32_t flags\
|<f2>uint64_t size\
|<f3>uint32_t erasesize\
|<f4>uint32_t writesize\
|<f4>uint32_t oobsize\
|<f5>uint32_t oobavail\
|<f6>unsigned int erasesize_shift\
|<f7>unsigned int writesize_shift\
|<f8>unsigned int erasesize_mask\
|<f9>unsigned int writesize_mask\
|<f10>const char *name\
|<f11>int index\
|<f12>struct nand_ecclayout *ecclayout\