return PDE(inode)->data; } /fs/proc/generic.c void *PDE_DATA(const struct inode *inode) { return __PDE_DATA(inode); } EXPORT_SYMBOL(PDE_DATA); 问题来源: 看LDD的时候,看到一个函数调用了PDE_DATA(),第一次遇见 static int jit_tasklet_proc_open(struct inode *inode, struct file *file)...
void *PDE_DATA(const struct inode *inode) { return __PDE_DATA(inode); } EXPORT_SYMBOL(PDE_DATA); 1. 2. 3. 4. 5. 问题来源: 看LDD的时候,看到一个函数调用了PDE_DATA(),第一次遇见 static int jit_tasklet_proc_open(struct inode *inode, struct file *file) { return single_open(file,...
.../ldd3/misc-modules/jit.c:96:40: error: implicit declaration of function ‘pde_data’ [-Werror=implicit-function-declaration] 96 | return single_open(file, jit_fn_show, pde_data(inode)); Maybe some wrapper should be added to handle this depending on kernel version? I think it woul...
static int srm_env_proc_open(struct inode *inode, struct file *file) { return single_open(file, srm_env_proc_show, PDE_DATA(inode)); return single_open(file, srm_env_proc_show, pde_data(inode)); } static ssize_t srm_env_proc_write(struct file *file, const char __user *buffer,...
staticintrpc_proc_open(struct inode *inode, struct file *file){returnsingle_open(file, rpc_proc_show,PDE_DATA(inode)); } 开发者ID:AD5GB,项目名称:kernel_n5_3.10-experimental,代码行数:4,代码来源:stats.c 示例3: uf_proc_open ▲点赞 5▼ ...