Results 1 to 2 of 2
Hi,
I want to be able to differentiate between disk I/O and network I/O from vfs_read(). This function takes a pointer to a struct file as a parameter. My question ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-10-2009 #1Just Joined!
- Join Date
- Nov 2009
- Posts
- 2
socket or not from struct file
Hi,
I want to be able to differentiate between disk I/O and network I/O from vfs_read(). This function takes a pointer to a struct file as a parameter. My question is how to figure whether that file is a socket or a physical file on disk. Thanks.
- 11-16-2009 #2Just Joined!
- Join Date
- Nov 2009
- Posts
- 2
solved: S_ISSOCK(filp->f_dentry->d_inode->i_mode)


Reply With Quote
