Possible paths from struct file*:
1- Get the struct dentry* object from struct file* ;
file->f_path.dentry
2- Get the struct inode* from struct file *:
file->f_inode
Possible paths from struct dentry:
1- Get the file name of the current struct dentry * object:
dentry->d_name.name
2- Get the length of file from the current struct dentry * object:
dentry->d_name.len
3- Get the struct inode* from struct dentry *:
dentry->d_inode
Continues.... (coming up)
1- Get the struct dentry* object from struct file* ;
file->f_path.dentry
2- Get the struct inode* from struct file *:
file->f_inode
Possible paths from struct dentry:
1- Get the file name of the current struct dentry * object:
dentry->d_name.name
2- Get the length of file from the current struct dentry * object:
dentry->d_name.len
3- Get the struct inode* from struct dentry *:
dentry->d_inode
Continues.... (coming up)
No comments:
Post a Comment