Path: blob/master/samples/livepatch/livepatch-callbacks-mod.c
26282 views
// SPDX-License-Identifier: GPL-2.0-or-later1/*2* Copyright (C) 2017 Joe Lawrence <[email protected]>3*/45/*6* livepatch-callbacks-mod.c - (un)patching callbacks demo support module7*8*9* Purpose10* -------11*12* Simple module to demonstrate livepatch (un)patching callbacks.13*14*15* Usage16* -----17*18* This module is not intended to be standalone. See the "Usage"19* section of livepatch-callbacks-demo.c.20*/2122#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt2324#include <linux/module.h>25#include <linux/kernel.h>2627static int livepatch_callbacks_mod_init(void)28{29pr_info("%s\n", __func__);30return 0;31}3233static void livepatch_callbacks_mod_exit(void)34{35pr_info("%s\n", __func__);36}3738module_init(livepatch_callbacks_mod_init);39module_exit(livepatch_callbacks_mod_exit);40MODULE_DESCRIPTION("Live patching demo for (un)patching callbacks, support module");41MODULE_LICENSE("GPL");424344