struct proc_dir_entry Definition in Kernel

2019-02-19 21:16发布

Where is struct proc_dir_entry defined in linux kernel? in /linux/proc_fs.h it is just declared as: (kernel 3.10)

struct proc_dir_entry;

and I think because of this I get this error:

dereferencing pointer to incomplete type

at this line of code though including /linux/proc_fs.h:

while(strcmp (my_dir_entry->name,"tcp"))

1条回答
何必那么认真
2楼-- · 2019-02-19 22:10

It is defined in fs/proc/internal.h.

查看更多
登录 后发表回答