proc_xid_iterate is called only in proc_xid_file_operations
find /vservers/kernel/linux-4.1.48/ -type f -exec grep -H proc_xid_iterate {} \;
/vservers/kernel/linux-4.1.48/kernel/vserver/proc.c:static int proc_xid_iterate(struct file *filp, struct dir_context *ctx)
/vservers/kernel/linux-4.1.48/kernel/vserver/proc.c-static struct file_operations proc_xid_file_operations = {
/vservers/kernel/linux-4.1.48/kernel/vserver/proc.c- .read = generic_read_dir,
/vservers/kernel/linux-4.1.48/kernel/vserver/proc.c: .iterate = proc_xid_iterate,
but
seems the function proc_xid_file_operations is not called anywhere:
find /vservers/kernel/linux-4.1.48 -type f -exec grep -H proc_xid_file_operations {} \;
/vservers/kernel/linux-4.1.48/patch-4.1.48-vs2.3.8.6.diff:+static struct file_operations proc_xid_file_operations = {
/vservers/kernel/linux-4.1.48/kernel/vserver/proc.c:static struct file_operations proc_xid_file_operations = {
so perhaps its legacy code not used anywhere ?
regards,
Ghislain.
Received on Fri Dec 29 09:11:29 2017