- 论坛徽章:
- 0
|
我的虚拟文件系统(linux)
struct hello_dir_entry {
unsigned short low_ino;
unsigned short namelen;
const char *name;
mode_t mode;
nlink_t nlink;
uid_t uid;
gid_t gid;
unsigned long size;
struct inode_operations * hello_iops;
struct file_operations * hello_fops;
get_info_t *get_info;
struct module *owner;
struct hello_dir_entry *next, *parent, *subdir;
void *data;
read_hello_t *read_hello;
write_hello_t *write_hello;
atomic_t count; /* use count */
int deleted; /* delete flag */
kdev_t rdev;
};
存放目录名的数据结构是否太小了? |
|