Added linux kernel module

This commit is contained in:
Mickey Malone
2021-02-06 11:59:39 -06:00
parent c64e6d5cc7
commit b076133178
4 changed files with 75 additions and 0 deletions

23
driver/pico_rng.c Normal file
View File

@@ -0,0 +1,23 @@
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Mickey Malone");
MODULE_DESCRIPTION("Random number generator using a Raspberry Pi Pico");
MODULE_VERSION("1.0");
static int __init driver_init(void)
{
printk(KERN_INFO "Raspberry Pi Pico RNG\n");
return 0;
}
static void __exit driver_exit(void)
{
return;
}
module_init(driver_init);
module_exit(driver_exit);