The strncpy_from_user function copies a string from user space into a kernel buffer, given a user space source address and Max length.
strncpy _ from_user函数将一个字符串从用户空间复制到一个内核缓冲区,给定一个用户空间源地址和最大长度。
The KERN_INFO symbol is a string that you can use to filter information from entering the kernel ring buffer (much like syslog).
kern_info符号是一个字符串,可以用来对进入内核回环缓冲区的信息进行过滤(非常类似于syslog)。
The final parameter is the string you're searching for (in this case, 'kernel').
最后一个参数是要搜索的字符串(在这里是' kernel ')。
应用推荐