mirror of
https://github.com/ioacademy-jikim/device_driver
synced 2025-06-07 07:56:08 +00:00
19 lines
242 B
C
19 lines
242 B
C
#include <linux/module.h>
|
|
#include <linux/kernel.h>
|
|
|
|
int my_init(void)
|
|
{
|
|
printk("init_module()\n");
|
|
return 0;
|
|
}
|
|
|
|
void my_exit(void)
|
|
{
|
|
printk("cleanup_module()\n");
|
|
}
|
|
|
|
MODULE_LICENSE("GPL");
|
|
module_init( my_init );
|
|
module_exit( my_exit );
|
|
|