继续编写简单的linux模块 hello

一、经过包含linux/sched.h头文件java #include <linux/sched.h> 能够使用下面的语句打印当前进程的进程 ID 和命令名:linux printk(KERN_INFO "The process is \"%s\" (pid %i)\n", current->comm, current->pid); hello.c函数 #include <linux/init.h
相关文章
相关标签/搜索