提交 9920e359 编写于 作者: O openharmony_ci 提交者: Gitee

!149 VfsProcfsOpen实现存在问题,没有调用具体procfs节点的存在的open函数

Merge pull request !149 from zhangfanfan2/master
......@@ -235,6 +235,13 @@ int VfsProcfsOpen(struct file *filep)
if (ProcOpen(pde->pf) != OK) {
return -ENOMEM;
}
if (S_ISREG(pde->mode) && (pde->procFileOps != NULL) && (pde->procFileOps->open != NULL)) {
(void)pde->procFileOps->open((struct Vnode *)pde, pde->pf);
}
if (S_ISDIR(pde->mode)) {
pde->pdirCurrent = pde->subdir;
pde->pf->fPos = 0;
}
filep->f_priv = (void *)pde;
return LOS_OK;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册