d-inode.h

来自「用于汇编领域的,运用于OS的MAIN函数.基于硬件基础的源代码」· C头文件 代码 · 共 21 行

H
21
字号
#ifndef DINODE_H#define DINODE_H// DInode, DItable class#define MAX_DINODE_BLK 7 #define MAX_DINODE_DITABLE 16struct DInode { // each inode has 32 bytes.   short ino;   short num_blk; //number of blocks assigned to this inode   long blk[MAX_DINODE_BLK]; // max 7 blocks per file};struct DITable{ // 16 inodes in inode table   struct DInode arr[MAX_DINODE_DITABLE];};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?