mirror of
https://github.com/54shady/kernel_drivers_examples.git
synced 2026-01-30 16:49:08 +00:00
18 lines
300 B
C
18 lines
300 B
C
#include <linux/module.h>
|
|
#include <linux/init.h>
|
|
|
|
static int __init hello_init(void)
|
|
{
|
|
printk("%s, %d\n", __FUNCTION__, __LINE__);
|
|
return 0;
|
|
}
|
|
|
|
static void hello_exit (void)
|
|
{
|
|
printk("%s, %d\n", __FUNCTION__, __LINE__);
|
|
}
|
|
|
|
module_init(hello_init);
|
|
module_exit(hello_exit);
|
|
MODULE_LICENSE("GPL");
|