android_kernel_xiaomi_sm8350/arch/sparc/kernel
Pavel Emelyanov b488893a39 pid namespaces: changes to show virtual ids to user
This is the largest patch in the set. Make all (I hope) the places where
the pid is shown to or get from user operate on the virtual pids.

The idea is:
 - all in-kernel data structures must store either struct pid itself
   or the pid's global nr, obtained with pid_nr() call;
 - when seeking the task from kernel code with the stored id one
   should use find_task_by_pid() call that works with global pids;
 - when showing pid's numerical value to the user the virtual one
   should be used, but however when one shows task's pid outside this
   task's namespace the global one is to be used;
 - when getting the pid from userspace one need to consider this as
   the virtual one and use appropriate task/pid-searching functions.

[akpm@linux-foundation.org: build fix]
[akpm@linux-foundation.org: nuther build fix]
[akpm@linux-foundation.org: yet nuther build fix]
[akpm@linux-foundation.org: remove unneeded casts]
Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: Alexey Dobriyan <adobriyan@openvz.org>
Cc: Sukadev Bhattiprolu <sukadev@us.ibm.com>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Paul Menage <menage@google.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-19 11:53:40 -07:00
..
apc.c
asm-offsets.c rename thread_info to stack 2007-05-09 12:30:56 -07:00
auxio.c [SPARC]: Spelling fixes. 2007-05-11 21:39:20 -07:00
cpu.c
devices.c
ebus.c [SPARC]: Fix EBUS use of uninitialized variable. 2007-09-27 13:09:28 -07:00
entry.S [SPARC32]: Fix modular build of floppy driver. 2007-08-03 14:08:42 -07:00
errtbls.c
etrap.S
head.S [SPARC32]: Fix sparc32 kdebug changes. 2007-05-14 03:22:08 -07:00
idprom.c
init_task.c Remove fs.h from mm.h 2007-07-29 17:09:29 -07:00
ioport.c SPARC: sg chaining support 2007-10-16 11:27:32 +02:00
irq.c [SPARC32]: Add irqflags.h to sparc32 and use it from generic code. 2007-10-13 21:53:11 -07:00
irq.h [SPARC32]: Take enable_irq/disable_irq out of line. 2007-07-21 19:19:38 -07:00
led.c
Makefile
module.c
muldiv.c
of_device.c [SPARC/64]: Consolidate of_register_driver 2007-10-17 21:17:42 -07:00
pcic.c [SPARC32]: clean include/asm-sparc/irq.h 2007-07-21 19:18:57 -07:00
pmc.c
process.c [SPARC]: Fix serial console device detection. 2007-07-20 16:59:26 -07:00
prom.c [SPARC]: Centralize find_in_proplist() instead of duplicating N times. 2007-08-07 18:46:36 -07:00
ptrace.c
rtrap.S
sclow.S
semaphore.c
setup.c [SPARC]: Fix serial console device detection. 2007-07-20 16:59:26 -07:00
signal.c
smp.c [SPARC32]: clean include/asm-sparc/irq.h 2007-07-21 19:18:57 -07:00
sparc_ksyms.c [SPARC32]: Fix modular build of floppy driver. 2007-08-03 14:08:42 -07:00
sparc-stub.c
sun4c_irq.c [SPARC32]: clean include/asm-sparc/irq.h 2007-07-21 19:18:57 -07:00
sun4d_irq.c [SPARC32]: Take enable_irq/disable_irq out of line. 2007-07-21 19:19:38 -07:00
sun4d_smp.c [SPARC32]: clean include/asm-sparc/irq.h 2007-07-21 19:18:57 -07:00
sun4m_irq.c [SPARC32]: clean include/asm-sparc/irq.h 2007-07-21 19:18:57 -07:00
sun4m_smp.c [SPARC32]: clean include/asm-sparc/irq.h 2007-07-21 19:18:57 -07:00
sun4setup.c
sunos_asm.S
sunos_ioctl.c
sys_solaris.c
sys_sparc.c remove include/asm-*/ipc.h 2007-10-17 08:42:55 -07:00
sys_sunos.c pid namespaces: changes to show virtual ids to user 2007-10-19 11:53:40 -07:00
systbls.S [SPARC]: Add sys_fallocate() entries. 2007-07-19 21:26:47 -07:00
tadpole.c
tick14.c [SPARC32]: Take enable_irq/disable_irq out of line. 2007-07-21 19:19:38 -07:00
time.c [SPARC/64]: Move of_platform_driver initialisations: arch/sparc{,64}. 2007-10-13 21:53:12 -07:00
trampoline.S
traps.c Report that kernel is tainted if there was an OOPS 2007-07-17 10:23:02 -07:00
unaligned.c
vmlinux.lds.S [SPARC]: beautify vmlinux.lds 2007-10-13 21:53:10 -07:00
windows.c
wof.S
wuf.S