copy _ to_user函数将数据块从内核复制到用户空间。
The copy_to_user function copies a block of data from the kernel into user space.
copy _ from_user函数将数据块从用户空间复制到内核缓冲区。
The copy_from_user function copies a block of data from user space into a kernel buffer.
例如,在snoop中,您可以获得从顶级协议到所传输的单个数据块的关于NFS操作的详细信息。
In snoop, for example, you can get detailed information about NFS operations, from the top level of the protocol right down to the individual data blocks transferred.
应用推荐