From: Felix Lee Date: Fri, 17 Nov 2023 13:56:07 +0000 (+0800) Subject: fix procfs_read typo X-Git-Url: https://www.ivnss.com/gitweb/?a=commitdiff_plain;h=f0594de3f74ddbca68c7eba6f1cd5502ac005cef;p=lkmpgcn fix procfs_read typo --- diff --git a/lkmpg_cn.tex b/lkmpg_cn.tex index a03f50a..6eee3d7 100644 --- a/lkmpg_cn.tex +++ b/lkmpg_cn.tex @@ -1428,7 +1428,7 @@ HelloWorld! 在 \verb|/proc| 中,每当我们注册一个新文件,\cpp|struct inode_operations| 将被% 我们允许指定用来访问它。这是我们用的机制,\cpp|struct inode_operations| % 结构体,其中包括指向一个 \cpp|struct proc_ops| 结构的指针,该结构体中有指向我% -们用到的 \cpp|procf_read| 与 \cpp|procfs_write| 函数。 +们用到的 \cpp|procfs_read| 与 \cpp|procfs_write| 函数。 这里有另一个引人之处是 \cpp|module_permission| 函数。当一个进程尝试用 \verb|/proc| % 文件搞点花活时,这个函数都会被调用,并且它还拥有决定允许或禁止访问的权力。%