相关疑难解决方法(0)

如何从Linux内核中的struct dentry获取完整路径名

我正在编写自己的内核模块,它捕获vfs_mkdir(struct inode *, struct dentry *, int)内核函数调用并尝试记录发生此调用的磁盘上的路径名.

我想使用dentry_path内核函数转换struct dentry *为路径名.当我插入模块时,我发现了一个错误

未知的符号dentry_path

我的内核版本是2.6.32,它应该被导出.我无法弄清楚原因.还有其他选择吗?

linux filesystems linux-kernel

3
推荐指数
1
解决办法
3234
查看次数

标签 统计

filesystems ×1

linux ×1

linux-kernel ×1