Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
filp_open 允许我们在文件系统中打开一个文件。但是从内核空间使用安全吗?如果使用需要注意什么。未来版本的 Linux 内核是否也会支持这一点。
目前使用 2.6.28 Linux 内核版本。
A lot of drivers use the filp_open() function, it is pretty much a helper to open a file in kernelspace. No reason to assume it won't continue to be supported. Even the kernel's filesystem subsystem uses filp_open().