Editing Containers/Pidspace
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | |||
− | |||
'''Pidspace tasks''' | '''Pidspace tasks''' | ||
− | + | * [[#Functions using pid_t]] | |
− | + | * [[#Misc tasks]] | |
− | |||
+ | <span id="Functions using pid_t">'''Functions using ''pid_t'''''</span> | ||
+ | <P> | ||
Files with calls to functions that take '''pid_t''' parameter. These calls should in general take a '''struct pid *''' instead and choose the correct pid value based on the container/pidspace. | Files with calls to functions that take '''pid_t''' parameter. These calls should in general take a '''struct pid *''' instead and choose the correct pid value based on the container/pidspace. | ||
Line 21: | Line 20: | ||
{| class="wikitable" | {| class="wikitable" | ||
|+ Pid_t uses in kernel | |+ Pid_t uses in kernel | ||
− | ! Filename/line-num !! Function !! Priority | + | ! Filename/line-num !! Function !! Priority |
|- | |- | ||
− | || '''./arch/mips/sgi-ip22/ip22-reset.c''' || ''kill_proc '' | + | || '''./arch/mips/sgi-ip22/ip22-reset.c''' || ''kill_proc '' || |
|- | |- | ||
− | || '''./arch/mips/sgi-ip32/ip32-reset.c''' || ''kill_proc '' | + | || '''./arch/mips/sgi-ip32/ip32-reset.c''' || ''kill_proc '' || |
|- | |- | ||
− | || '''./arch/powerpc/platforms/iseries/mf.c''' || ''kill_proc '' | + | || '''./arch/powerpc/platforms/iseries/mf.c''' || ''kill_proc '' || |
|- | |- | ||
|| '''./arch/sparc/kernel/sys_sunos.c''' || ''kill_pg '' || | || '''./arch/sparc/kernel/sys_sunos.c''' || ''kill_pg '' || | ||
Line 65: | Line 64: | ||
|| '''./drivers/char/n_tty.c''' || ''kill_pg '' || | || '''./drivers/char/n_tty.c''' || ''kill_pg '' || | ||
|- | |- | ||
− | || '''./drivers/char/nwbutton.c''' || ''kill_proc '' | + | || '''./drivers/char/nwbutton.c''' || ''kill_proc '' || |
|- | |- | ||
− | || '''./drivers/char/snsc_event.c''' || ''kill_proc '' | + | || '''./drivers/char/snsc_event.c''' || ''kill_proc '' || |
|- | |- | ||
|| '''./drivers/char/tty_io.c''' || ''kill_pg do_each_task_pid '' || | || '''./drivers/char/tty_io.c''' || ''kill_pg do_each_task_pid '' || | ||
Line 81: | Line 80: | ||
|| '''./drivers/net/wireless/airo.c''' || ''kill_proc '' || | || '''./drivers/net/wireless/airo.c''' || ''kill_proc '' || | ||
|- | |- | ||
− | || '''./drivers/parisc/power.c''' || ''kill_proc '' | + | || '''./drivers/parisc/power.c''' || ''kill_proc '' || |
|- | |- | ||
|| '''./drivers/s390/char/fs3270.c''' || ''kill_proc '' || | || '''./drivers/s390/char/fs3270.c''' || ''kill_proc '' || | ||
|- | |- | ||
− | || '''./drivers/s390/s390mach.c''' || ''kill_proc '' | + | || '''./drivers/s390/s390mach.c''' || ''kill_proc '' || |
|- | |- | ||
|| '''./drivers/usb/atm/usbatm.c''' || ''kill_proc '' || | || '''./drivers/usb/atm/usbatm.c''' || ''kill_proc '' || | ||
Line 97: | Line 96: | ||
|| '''./fs/ioprio.c''' || ''do_each_task_pid '' || | || '''./fs/ioprio.c''' || ''do_each_task_pid '' || | ||
|- | |- | ||
− | || '''./fs/lockd/svc.c''' || ''kill_proc '' | + | || '''./fs/lockd/svc.c''' || ''kill_proc '' || |
|- | |- | ||
|| '''./fs/ncpfs/inode.c''' || ''kill_proc '' || | || '''./fs/ncpfs/inode.c''' || ''kill_proc '' || | ||
Line 123: | Line 122: | ||
|| '''./kernel/signal.c''' || ''kill_proc kill_proc_info kill_pg __kill_pg_info do_each_task_pid kill_pg_info '' || | || '''./kernel/signal.c''' || ''kill_proc kill_proc_info kill_pg __kill_pg_info do_each_task_pid kill_pg_info '' || | ||
|- | |- | ||
− | || '''./kernel/sys.c''' || ''kill_proc do_each_task_pid '' | + | || '''./kernel/sys.c''' || ''kill_proc do_each_task_pid '' || |
|- | |- | ||
|| '''./mm/oom_kill.c''' || ''kill_proc '' || | || '''./mm/oom_kill.c''' || ''kill_proc '' || | ||
Line 129: | Line 128: | ||
|} | |} | ||
− | = | + | <span id="Misc tasks">'''Misc tasks'''</span> |
* Terminate all tasks when init of a container exits | * Terminate all tasks when init of a container exits |