Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003  * Copyright (C) 2017 Joe Lawrence <joe.lawrence@redhat.com>
0004  */
0005 
0006 /*
0007  * livepatch-callbacks-mod.c - (un)patching callbacks demo support module
0008  *
0009  *
0010  * Purpose
0011  * -------
0012  *
0013  * Simple module to demonstrate livepatch (un)patching callbacks.
0014  *
0015  *
0016  * Usage
0017  * -----
0018  *
0019  * This module is not intended to be standalone.  See the "Usage"
0020  * section of livepatch-callbacks-demo.c.
0021  */
0022 
0023 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
0024 
0025 #include <linux/module.h>
0026 #include <linux/kernel.h>
0027 
0028 static int livepatch_callbacks_mod_init(void)
0029 {
0030     pr_info("%s\n", __func__);
0031     return 0;
0032 }
0033 
0034 static void livepatch_callbacks_mod_exit(void)
0035 {
0036     pr_info("%s\n", __func__);
0037 }
0038 
0039 module_init(livepatch_callbacks_mod_init);
0040 module_exit(livepatch_callbacks_mod_exit);
0041 MODULE_LICENSE("GPL");