最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

tmp_share

tmp_todo crifan 1680浏览
#include <linux/init.h>

#include <linux/module.h>

MODULE_LICENSE("Dual BSD/GPL");

static int hello_init(void)

{

    printk(KERN_ALERT "Hello, worldn");

    return 0;

}

static void hello_exit(void)

{

    printk(KERN_ALERT "Goodbye, cruel worldn");

}

module_init(hello_init);

module_exit(hello_exit);
 
--------------------------------------
 
printk(KERN_INFO "The process is "%s" (pid %i)n",

        current->comm, current->pid);

转载请注明:在路上 » tmp_share

81 queries in 0.181 seconds, using 19.06MB memory