Simol
Simol

Reputation: 639

struct proc_dir_entry Definition in Kernel

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"))

Upvotes: 2

Views: 6849

Answers (1)

Levente Kurusa
Levente Kurusa

Reputation: 1866

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

Upvotes: 4

Related Questions