struct proc_dir_entry Definition in Kernel

守給你的承諾、 提交于 2019-12-19 10:37:08

问题


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:


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



来源:https://stackoverflow.com/questions/19334023/struct-proc-dir-entry-definition-in-kernel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!