cregit-Linux how code gets into the kernel

Release 4.14 arch/um/kernel/reboot.c

Directory: arch/um/kernel
/* 
 * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
 * Licensed under the GPL
 */

#include <linux/sched/signal.h>
#include <linux/sched/task.h>
#include <linux/sched/mm.h>
#include <linux/spinlock.h>
#include <linux/slab.h>
#include <linux/oom.h>
#include <kern_util.h>
#include <os.h>
#include <skas.h>


void (*pm_power_off)(void);

EXPORT_SYMBOL(pm_power_off);


static void kill_off_processes(void) { struct task_struct *p; int pid; read_lock(&tasklist_lock); for_each_process(p) { struct task_struct *t; t = find_lock_task_mm(p); if (!t) continue; pid = t->mm->context.id.u.pid; task_unlock(t); os_kill_ptraced_process(pid, 1); } read_unlock(&tasklist_lock); }

Contributors

PersonTokensPropCommitsCommitProp
Jeff Dike4658.97%240.00%
Anton Vorontsov3241.03%360.00%
Total78100.00%5100.00%


void uml_cleanup(void) { kmalloc_ok = 0; do_uml_exitcalls(); kill_off_processes(); }

Contributors

PersonTokensPropCommitsCommitProp
Jeff Dike17100.00%2100.00%
Total17100.00%2100.00%


void machine_restart(char * __unused) { uml_cleanup(); reboot_skas(); }

Contributors

PersonTokensPropCommitsCommitProp
Jeff Dike15100.00%3100.00%
Total15100.00%3100.00%


void machine_power_off(void) { uml_cleanup(); halt_skas(); }

Contributors

PersonTokensPropCommitsCommitProp
Jeff Dike13100.00%3100.00%
Total13100.00%3100.00%


void machine_halt(void) { machine_power_off(); }

Contributors

PersonTokensPropCommitsCommitProp
Jeff Dike10100.00%1100.00%
Total10100.00%1100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
Jeff Dike11062.86%637.50%
Anton Vorontsov3620.57%318.75%
Eric W. Biedermann95.14%16.25%
Ingo Molnar74.00%318.75%
Al Viro63.43%16.25%
Richard Weinberger52.86%16.25%
Tejun Heo21.14%16.25%
Total175100.00%16100.00%
Directory: arch/um/kernel
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.