Run clang-format
This commit is contained in:
parent
372b482212
commit
d149cbe6a5
12 changed files with 974 additions and 132 deletions
|
@ -6,22 +6,26 @@
|
|||
|
||||
static inline void print_processus_info(void);
|
||||
|
||||
static int __init basic_module_init(void) {
|
||||
static int __init basic_module_init(void)
|
||||
{
|
||||
pr_info("Bonjour! Le module est chargé.\n");
|
||||
|
||||
print_processus_info();
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void __exit basic_module_exit(void) {
|
||||
static void __exit basic_module_exit(void)
|
||||
{
|
||||
pr_info("Au revoir! Le module est déchargé.\n");
|
||||
}
|
||||
|
||||
static inline void print_processus_info(void) {
|
||||
static inline void print_processus_info(void)
|
||||
{
|
||||
struct task_struct *task;
|
||||
|
||||
for_each_process(task) {
|
||||
pr_info("PID: %d, COMM: %s, ON CPU: %d\n", task->pid, task->comm, task->on_cpu);
|
||||
pr_info("PID: %d, COMM: %s, ON CPU: %d\n", task->pid,
|
||||
task->comm, task->on_cpu);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue