다시 핵심만.
1.
insmod
modprobe
rmmod
2.
#include <linux/init.h>
module_init(init_function);
module_exit(cleanup_function);
3.
__init
__initdata
__exit
__exitdata
메모리에서 쓰고 바로 없어짐.
4.
#include <linux/sched.h>
struct task_struct *current; // The current process.
current->pid
current->comm // The process ID and command name for the current process.