linux - Unknown symbol dentry_path -


i'm using method dentry_path in kernel module, compilation work fine when loading kernel module go error message:

error: not insert module my_mod.ko: unknown symbol in module

and in /var/log/kern.log

may 8 19:45:10 zubuntu kernel: [ 1173.105984] my_mod: unknown symbol dentry_path (err 0)

this method declared following:

extern char *dentry_path(struct dentry *, char *, int); 

could please explain me why can't link module using method ?

i think need use dentry_path_raw instead of dentry_path, cause dentry_path isn't exported. also, dentry_path_raw safer version between these two, it's protected writelock.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -