I need to get pointer to proc_dir_entry by it’s name (path).
I see in the Linux source that proc entries are in double-linked list
struct proc_dir_entry {
.....
struct proc_dir_entry *next, *parent, *subdir;
So, I could probably loop over the list.
Is there any ready solution for it or should I do myself?
This code exists but definitely not exported. See
xlate_proc_nameatfs/proc/generic.c.