kernel_platform/common (Android common kernel, android16-6.12) from opendevices.sony.net, "Open source archive for 73.1.A.2.74" (Xperia 1 VIII), unmodified. This is the kernel Sony ships, so stock-built modules (e.g. the WLAN driver, whose source is not in the archive) match it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
36 lines
854 B
C
36 lines
854 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* This module emits "Hello, world" on printk when loaded.
|
|
*
|
|
* It is designed to be used for basic evaluation of the module loading
|
|
* subsystem (for example when validating module signing/verification). It
|
|
* lacks any extra dependencies, and will not normally be loaded by the
|
|
* system unless explicitly requested by name.
|
|
*/
|
|
|
|
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
|
|
|
#include <linux/init.h>
|
|
#include <linux/module.h>
|
|
#include <linux/printk.h>
|
|
|
|
static int __init test_module_init(void)
|
|
{
|
|
pr_warn("Hello, world\n");
|
|
|
|
return 0;
|
|
}
|
|
|
|
module_init(test_module_init);
|
|
|
|
static void __exit test_module_exit(void)
|
|
{
|
|
pr_warn("Goodbye\n");
|
|
}
|
|
|
|
module_exit(test_module_exit);
|
|
|
|
MODULE_AUTHOR("Kees Cook <[email protected]>");
|
|
MODULE_DESCRIPTION("module loading subsystem test module");
|
|
MODULE_LICENSE("GPL");
|