struct proc_dir_entry
在linux内核中定义在哪里?
在 /linux/proc_fs.h
中它被声明为:(kernel 3.10)
struct proc_dir_entry;
我认为因此我得到了这个错误:
dereferencing pointer to incomplete type
在这行代码中包含 /linux/proc_fs.h
:
while(strcmp (my_dir_entry->name,"tcp"))
最佳答案
它在fs/proc/internal.h
中定义。
关于kernel - struct proc_dir_entry 内核中的定义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19334023/