问题
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