File: mod-loop-c.c

package info (click to toggle)
kmod 23-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,524 kB
  • ctags: 1,705
  • sloc: ansic: 14,537; xml: 1,848; makefile: 593; sh: 214; python: 7
file content (25 lines) | stat: -rw-r--r-- 417 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/init.h>
#include <linux/module.h>
#include <linux/printk.h>

#include "mod-loop.h"

static int __init test_module_init(void)
{
	printC();
	printA();

	return 0;
}
module_init(test_module_init);

void printC(void)
{
	pr_warn("Hello, world C\n");
}
EXPORT_SYMBOL(printC);

MODULE_AUTHOR("Lucas De Marchi <lucas.demarchi@intel.com>");
MODULE_LICENSE("LGPL");