-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Expand file tree
/
Copy pathmigt_main.c
More file actions
48 lines (40 loc) · 971 Bytes
/
Copy pathmigt_main.c
File metadata and controls
48 lines (40 loc) · 971 Bytes
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#define pr_fmt(fmt) "migt: " fmt
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/cpufreq.h>
#include <linux/cpu.h>
#include <linux/sched.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/slab.h>
#include <linux/time.h>
#include <linux/miscdevice.h>
#include <linux/security.h>
#include <linux/mm.h>
#include <linux/mman.h>
#include <linux/uaccess.h>
#include <linux/hrtimer.h>
#include <linux/pm_qos.h>
#include <linux/cred.h>
#include <linux/mi_sched.h>
#include <linux/fs.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/uaccess.h>
#include <linux/sched/signal.h>
#include <linux/list.h>
#include <trace/hooks/sched.h>
static unsigned int migt_debug;
module_param(migt_debug, uint, 0644);
static int migt_init(void)
{
return 0;
}
static void __exit migt_exit()
{
return;
}
late_initcall(migt_init);
module_exit(migt_exit);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("migt-driver by David");