module: add exitcall function
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
e8de5a33af
commit
3abfd32fbb
6 changed files with 110 additions and 11 deletions
15
drivers/testmod.c
Normal file
15
drivers/testmod.c
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#include <kernel/driver.h>
|
||||
|
||||
static void driver_entry(void)
|
||||
{
|
||||
kprintf("driver entry\n");
|
||||
}
|
||||
|
||||
static void driver_exit(void)
|
||||
{
|
||||
kprintf("driver exit\n");
|
||||
}
|
||||
|
||||
DRIVER_ENTRY(driver_entry);
|
||||
DRIVER_EXIT(driver_exit);
|
||||
Loading…
Reference in a new issue