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.
我正在用 linux 内核模块编写一个 linux 设备驱动程序,我想处理用户在文件大小之后写入的情况。我看到有 vfs_lseek(),但它需要一个 fd,我只有 struct* 文件指针。我可以在内核模块中使用等效的 lseek 吗?