dentry对象.pptVIP

  • 6
  • 0
  • 约1.1万字
  • 约 40页
  • 2016-11-06 发布于天津
  • 举报
dentry对象

3.struct inode_operations struct inode_operations { int(*create)(struct inode *,struct dentry *,int); struct dentry * (*lookup) (struct inode *, struct dentry *); int(*link)(struct dentry *,struct inode *, struct dentry *); int (*unlink) (struct inode *,struct dentry *); int (*symlink)(struct inode *, struct dentry *,const char *); }; create:第一个参数必须是目录型文件对应的 inode。create在该目录下创建一个文件. lookup:第一个参数是目录型文件对应的inode。 lookup()在该目录下查找一个文件。 4.struct file_operations struct file_operations { loff_t (*llseek) (struct f

文档评论(0)

1亿VIP精品文档

相关文档