如何从主机装置使一个内核函数调用?
How to make a kernel function which callable from both the host and device?
现在我们看看其他能挂钩的内核函数。
Now let's look at some of the other kernel functions that you can hook.
其次,定义您的探针,它是一个探测内核函数sys_sync的条目。
Next, define your probe, which is an entry probe into the kernel function sys_sync.
注意此处printk的用法:这是内核的printf函数。
Note the use of printk here: this is the kernel printf function.
copy _ from_user函数将数据块从用户空间复制到内核缓冲区。
The copy_from_user function copies a block of data from user space into a kernel buffer.
copy _ to_user函数将数据块从内核复制到用户空间。
The copy_to_user function copies a block of data from the kernel into user space.
copy _ to_user函数将数据块从内核复制到用户空间。
The copy_to_user function copies a block of data from the kernel into user space.
应用推荐