Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  Hello, Kernel!

When we learn module programming, the first small program must be hello, kernel!. For a novice, how do we avoid some mistakes and how to fix the bugs we have when writing the first module program? Is there any example we can refer to? Here is one example.1. Write the hello.c01#include <linux/init.h>02#include <linux/module.h>03#include <linux/kernel.h>04//Compulsory05//Module lincese declaration06MODULE_LICENSE("GPL");07//Module load function08static int hello_init(void)09{10    printk(KERN_ALERT "hello,I am edsionte\n");11   ...

3,430 0       LINUX MODULE KERNEL