使用道具 举报
#define MODULE #include <linux/module.h> int init_module(void) { printk("<1>Hello, world\n"); return 0; } void cleanup_module(void) { printk("<1>Goodbye cruel world\n"); } root# gcc -O -DMODULE -D_KERNEL_ -o hello.o -c hello.c
本版积分规则 发表回复 回帖并转播 回帖后跳转到最后一页
GMT+8, 2025-2-13 06:36 , Processed in 0.024202 second(s), 16 queries .
© 2001-2025 Discuz! Team. Powered by Discuz! X3.5.