struct proc_dir_entry在内核中的定义 [英] struct proc_dir_entry Definition in Kernel

查看:891
本文介绍了struct proc_dir_entry在内核中的定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Linux内核中的struct proc_dir_entry在哪里定义? 在/linux/proc_fs.h中,它仅声明为:(内核3.10)

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

尽管包含/linux/proc_fs.h,但在此代码行中的

:

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

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

推荐答案

它在fs/proc/internal.h中定义.

这篇关于struct proc_dir_entry在内核中的定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆