sys_prof, sys_brk, sys_setgid,
sys_getgid, sys_signal, sys_geteuid, sys_getegid, sys_acct, sys_phys,
sys_lock...f=0+file_table;
for (i=0 ; i<NR_FILE ; i++,f++)
if (!...* filp[NR_OPEN]; 打开,把这个fd 传给用户空间,那么,这个file 结构又是如何组织的呢?...每个文件的信息是如何组织的
从进程中的 file 结构出发,我们看下文件结构是如何组织的 linux-0.11-master/include/linux/fs.h :
struct file {
unsigned...long i_ctime;
unsigned short i_dev;
unsigned short i_num;
unsigned short i_count;
unsigned char i_lock