1、包含头文件#include<linux/sched.h> 2、printk(KERN_INFO "The processer is \"%s\" (pid %i)\n",current->comm,current->pid);