inode.h

来自「操作系统课程设计」· C头文件 代码 · 共 19 行

H
19
字号
/* inode.h */

#ifndef _INODE_H
#define _INODE_H 0

#include "block.h"

#define TOTAL_INODES (BLOCK_SIZE*INODE_TABLE_BLOCKS/sizeof(struct fs_inode))
/* the INODE_OFFSET(x) implies boot + super contains in one block */
#define INODE_OFFSET(x) (BLOCK_SIZE + (x)*sizeof(struct fs_inode))

int get_ind(FILE *fp);

int free_ind( FILE *fp, int ind_no);

int update_ind( FILE *fp, int ind_no, struct fs_inode inode);

#endif	/* _INODE_H */

⌨️ 快捷键说明

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