Ubuntu proc_root_driver missing from <linux/proc_fs.h> -
i trying compile kernel module in ubuntu 10.04 kernel 2.6.35-22 , complaining proc_root_driver missing. did searching , found supposed define in version of linux-headers, isn't defined. there global variable supposed use in place or there way can define somewhere kernel module can compile?
proc_root_driver
used pointer proc_dir_entry
created proc_mkdir("driver", null);
. removed in april 2008 in commit: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=928b4d8c8963e75bdb133f562b03b07f9aa4844a
also, don't think ever supposed part of kernel api, afaik internal thing.
it doesn't much, really. need use full path under /proc, i.e. replace code looks like
proc_array = proc_mkdir("drvnamehere", proc_root_driver);
with code looks like
proc_array = proc_mkdir("driver/drvnamehere", null);
and should fine.
Comments
Post a Comment