gpt4 book ai didi

c - proc-fs - 多个文件的单一回调函数

转载 作者:太空宇宙 更新时间:2023-11-04 03:43:47 26 4
gpt4 key购买 nike

我在使用 proc-filesystem 时遇到一些问题。
Kernel 3.10 之前,proc-fs readwrite 函数有一个参数 void *data 允许对多个文件使用单个回调函数。在 struct file_operations 的读写函数中缺少这样的参数,我不知道如何解决。

最佳答案

适用于 proc_create_data 和 PDE_DATA(file_inode(filp)) 宏

关于c - proc-fs - 多个文件的单一回调函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26527038/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com