Difference between revisions of "Containers/Pidspace"

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
m (added to Containers cat.)
(Functions using ''pid_t'')
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Category: Containers}}
+
[[Category: Containers]]
  
 
'''Pidspace tasks'''
 
'''Pidspace tasks'''
  
* [[# Functions using pid_t]]
+
__TOC__
* [[# Misc tasks]]
+
 
 +
== Functions using ''pid_t'' ==
  
<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 98: Line 97:
 
|| '''./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  '' || || Testing. Jean-Pierre ||
 
|-
 
|-
 
|| '''./fs/ncpfs/inode.c''' || ''kill_proc  '' ||
 
|| '''./fs/ncpfs/inode.c''' || ''kill_proc  '' ||
Line 130: Line 129:
 
|}
 
|}
  
<span id="Misc tasks">'''Misc tasks'''</span>
+
== Misc tasks ==
  
 
* Terminate all tasks when init of a container exits
 
* Terminate all tasks when init of a container exits

Latest revision as of 15:15, 28 March 2007


Pidspace tasks

Functions using pid_t[edit]

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.

This list is based on 2.6.18-rc5. It was generated using a simple perl script that looks for following patterns. While the script should have found all occurences of the patterns, it does not strip out matches like oom_kill_process() which matches kill_proc.

  • do_each_task_pid
  • kill_proc_info
  • kill_proc
  • __kill_pg_info
  • kill_pg_info
  • kill_pg


Pid_t uses in kernel
Filename/line-num Function Priority Comments
./arch/mips/sgi-ip22/ip22-reset.c kill_proc Done. Cedric, cad_pid patch
./arch/mips/sgi-ip32/ip32-reset.c kill_proc Done. Cedric, cad_pid patch
./arch/powerpc/platforms/iseries/mf.c kill_proc Done. Cedric, cad_pid patch
./arch/sparc/kernel/sys_sunos.c kill_pg
./arch/sparc64/kernel/sys_sunos32.c kill_pg
./arch/um/drivers/line.c kill_proc kill_pg
./arch/um/drivers/port_kern.c kill_proc
./arch/um/drivers/slip_user.c kill_proc
./arch/um/drivers/ubd_kern.c kill_proc
./arch/um/drivers/xterm.c kill_proc
./arch/um/include/os.h kill_proc
./arch/um/kernel/reboot.c kill_proc
./arch/um/kernel/tt/process_kern.c kill_proc
./arch/um/os-Linux/aio.c kill_proc
./arch/um/os-Linux/process.c kill_proc
./arch/um/os-Linux/sigio.c kill_proc
./arch/um/os-Linux/start_up.c kill_proc
./drivers/char/ip2/ip2main.c kill_pg
./drivers/char/keyboard.c kill_proc
./drivers/char/n_r3964.c kill_proc
./drivers/char/n_tty.c kill_pg
./drivers/char/nwbutton.c kill_proc Done. Cedric, cad_pid patch
./drivers/char/snsc_event.c kill_proc Done. Cedric, cad_pid patch
./drivers/char/tty_io.c kill_pg do_each_task_pid
./drivers/char/vt.c kill_pg
./drivers/char/vt_ioctl.c kill_proc
./drivers/media/dvb/dvb-core/dvb_ca_en50221.c kill_proc
./drivers/media/dvb/dvb-core/dvb_frontend.c kill_proc
./drivers/net/wireless/airo.c kill_proc
./drivers/parisc/power.c kill_proc Done. Cedric, cad_pid patch
./drivers/s390/char/fs3270.c kill_proc
./drivers/s390/s390mach.c kill_proc Done. Cedric, cad_pid patch
./drivers/usb/atm/usbatm.c kill_proc
./drivers/usb/core/devio.c kill_proc kill_proc_info
./drivers/usb/core/inode.c kill_proc kill_proc_info
./fs/fcntl.c do_each_task_pid
./fs/ioprio.c do_each_task_pid
./fs/lockd/svc.c kill_proc Testing. Jean-Pierre
./fs/ncpfs/inode.c kill_proc
./fs/nfs/callback.c kill_proc
./fs/nfs/delegation.c kill_proc
./fs/nfs/nfs4state.c kill_proc
./fs/smbfs/inode.c kill_proc
./fs/smbfs/smbiod.c kill_proc
./include/linux/pid.h do_each_task_pid
./include/linux/sched.h kill_proc kill_proc_info kill_pg __kill_pg_info kill_pg_info
./ipc/mqueue.c kill_proc kill_proc_info
./kernel/capability.c do_each_task_pid
./kernel/exit.c kill_pg __kill_pg_info kill_pg_info do_each_task_pid
./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 Done. Cedric, cad_pid patch
./mm/oom_kill.c kill_proc

Misc tasks[edit]

  • Terminate all tasks when init of a container exits