csci3753

CSCI3753 Coursework
git clone https://git.pngu.org/csci3753
Log | Files | Refs | README

hellomodule.c (381B)


#include <linux/init.h>
#include <linux/module.h>

MODULE_AUTHOR("jasa7131");
MODULE_LICENSE("GPL");

int hello_init(void);
void hello_exit(void);

int hello_init(void) {
  printk(KERN_ALERT "inside %s function\n", __FUNCTION__);
  return 0;
}

void hello_exit(void) {
  printk(KERN_ALERT "inside %s function\n", __FUNCTION__);
}

module_init(hello_init);
module_exit(hello_exit);