kernel - struct proc_dir_entry 内核中的定义

标签 kernel definition

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/

相关文章:

c++ - C++中一个变量定义列表中的常量和非常量

python - Elementwise if elif函数在python中使用数组

python - 如何正确定义函数?

c - 函数原型(prototype)与否?

string - 将函数应用于两个不等向量的笛卡尔积

c - 内核(以及一般的操作系统)是如何用 C 编写的?

linux - 编译内核 - 没有生成 bzImage/vmlinuz

kernel - x86-64 架构中的分页

c++ - 如何查看c++中小于运算符的函数定义

Java二维数组定义