阅读背景:

我如何在linux内核中使用vfs_readdir?

来源:互联网 

I'm trying to use a system call to display the contents of a directory. I've been pointed in the direction of vfs_readdir, but I have no clue of how to use it or what to pass to it to get the contents of a directory. All I want to do is be able to list files in a directory similar to how ls works. (I eventually intend to store this in some sort of buffer, but for now just being able to print the contents of a dir would be enough).I'm trying to use a system call to display the




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: