Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
process.c File Reference
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/smp.h>
#include <linux/stddef.h>
#include <linux/unistd.h>
#include <linux/ptrace.h>
#include <linux/slab.h>
#include <linux/user.h>
#include <linux/elf.h>
#include <linux/init.h>
#include <linux/prctl.h>
#include <linux/init_task.h>
#include <linux/export.h>
#include <linux/kallsyms.h>
#include <linux/mqueue.h>
#include <linux/hardirq.h>
#include <linux/utsname.h>
#include <linux/ftrace.h>
#include <linux/kernel_stat.h>
#include <linux/personality.h>
#include <linux/random.h>
#include <linux/hw_breakpoint.h>
#include <asm/pgtable.h>
#include <asm/uaccess.h>
#include <asm/io.h>
#include <asm/processor.h>
#include <asm/mmu.h>
#include <asm/prom.h>
#include <asm/machdep.h>
#include <asm/time.h>
#include <asm/runlatch.h>
#include <asm/syscalls.h>
#include <asm/switch_to.h>
#include <asm/debug.h>
#include <linux/kprobes.h>
#include <linux/kdebug.h>

Go to the source code of this file.

Data Structures

struct  regbit
 

Macros

#define REG   "%08lx"
 
#define REGS_PER_LINE   8
 
#define LAST_VOLATILE   12
 
#define PR_FP_ALL_EXCEPT
 
#define TRUNC_PTR(x)   ((typeof(x))(((unsigned long)(x)) & 0xffffffff))
 

Functions

unsigned long _get_SP (void)
 
void flush_fp_to_thread (struct task_struct *tsk)
 
 EXPORT_SYMBOL_GPL (flush_fp_to_thread)
 
void enable_kernel_fp (void)
 
 EXPORT_SYMBOL (enable_kernel_fp)
 
void discard_lazy_cpu_state (void)
 
void do_dabr (struct pt_regs *regs, unsigned long address, unsigned long error_code)
 
int set_dabr (unsigned long dabr, unsigned long dabrx)
 
struct task_struct__switch_to (struct task_struct *prev, struct task_struct *new)
 
void show_regs (struct pt_regs *regs)
 
void exit_thread (void)
 
void flush_thread (void)
 
void release_thread (struct task_struct *t)
 
int arch_dup_task_struct (struct task_struct *dst, struct task_struct *src)
 
int copy_thread (unsigned long clone_flags, unsigned long usp, unsigned long arg, struct task_struct *p, struct pt_regs *regs)
 
void start_thread (struct pt_regs *regs, unsigned long start, unsigned long sp)
 
int set_fpexc_mode (struct task_struct *tsk, unsigned int val)
 
int get_fpexc_mode (struct task_struct *tsk, unsigned long adr)
 
int set_endian (struct task_struct *tsk, unsigned int val)
 
int get_endian (struct task_struct *tsk, unsigned long adr)
 
int set_unalign_ctl (struct task_struct *tsk, unsigned int val)
 
int get_unalign_ctl (struct task_struct *tsk, unsigned long adr)
 
int sys_clone (unsigned long clone_flags, unsigned long usp, int __user *parent_tidp, void __user *child_threadptr, int __user *child_tidp, int p6, struct pt_regs *regs)
 
int sys_fork (unsigned long p1, unsigned long p2, unsigned long p3, unsigned long p4, unsigned long p5, unsigned long p6, struct pt_regs *regs)
 
int sys_vfork (unsigned long p1, unsigned long p2, unsigned long p3, unsigned long p4, unsigned long p5, unsigned long p6, struct pt_regs *regs)
 
void __ret_from_kernel_execve (struct pt_regs *normal) __noreturn
 
void ret_from_kernel_execve (struct pt_regs *normal)
 
int validate_sp (unsigned long sp, struct task_struct *p, unsigned long nbytes)
 
 EXPORT_SYMBOL (validate_sp)
 
unsigned long get_wchan (struct task_struct *p)
 
void show_stack (struct task_struct *tsk, unsigned long *stack)
 
void dump_stack (void)
 
 EXPORT_SYMBOL (dump_stack)
 
unsigned long arch_align_stack (unsigned long sp)
 
unsigned long arch_randomize_brk (struct mm_struct *mm)
 
unsigned long randomize_et_dyn (unsigned long base)
 

Variables

struct task_structlast_task_used_math = NULL
 
struct task_structlast_task_used_altivec = NULL
 
struct task_structlast_task_used_vsx = NULL
 
struct task_structlast_task_used_spe = NULL
 
unsigned long dscr_default
 

Macro Definition Documentation

#define LAST_VOLATILE   12

Definition at line 637 of file process.c.

#define PR_FP_ALL_EXCEPT
Value:

Definition at line 918 of file process.c.

#define REG   "%08lx"

Definition at line 635 of file process.c.

#define REGS_PER_LINE   8

Definition at line 636 of file process.c.

#define TRUNC_PTR (   x)    ((typeof(x))(((unsigned long)(x)) & 0xffffffff))

Definition at line 1030 of file process.c.

Function Documentation

void __ret_from_kernel_execve ( struct pt_regs normal)
struct task_struct* __switch_to ( struct task_struct prev,
struct task_struct new 
)
read

Definition at line 400 of file process.c.

unsigned long _get_SP ( void  )
unsigned long arch_align_stack ( unsigned long  sp)

Definition at line 1244 of file process.c.

int arch_dup_task_struct ( struct task_struct dst,
struct task_struct src 
)

Definition at line 716 of file process.c.

unsigned long arch_randomize_brk ( struct mm_struct mm)

Definition at line 1264 of file process.c.

int copy_thread ( unsigned long  clone_flags,
unsigned long  usp,
unsigned long  arg,
struct task_struct p,
struct pt_regs regs 
)

Definition at line 735 of file process.c.

void discard_lazy_cpu_state ( void  )

Definition at line 234 of file process.c.

void do_dabr ( struct pt_regs regs,
unsigned long  address,
unsigned long  error_code 
)

Definition at line 274 of file process.c.

void dump_stack ( void  )

Definition at line 1210 of file process.c.

void enable_kernel_fp ( void  )

Definition at line 103 of file process.c.

void exit_thread ( void  )
inline

Definition at line 691 of file process.c.

EXPORT_SYMBOL ( enable_kernel_fp  )
EXPORT_SYMBOL ( validate_sp  )
EXPORT_SYMBOL ( dump_stack  )
EXPORT_SYMBOL_GPL ( flush_fp_to_thread  )
void flush_fp_to_thread ( struct task_struct tsk)

Definition at line 73 of file process.c.

void flush_thread ( void  )

Definition at line 696 of file process.c.

int get_endian ( struct task_struct tsk,
unsigned long  adr 
)

Definition at line 996 of file process.c.

int get_fpexc_mode ( struct task_struct tsk,
unsigned long  adr 
)

Definition at line 957 of file process.c.

int get_unalign_ctl ( struct task_struct tsk,
unsigned long  adr 
)

Definition at line 1025 of file process.c.

unsigned long get_wchan ( struct task_struct p)

Definition at line 1113 of file process.c.

unsigned long randomize_et_dyn ( unsigned long  base)

Definition at line 1289 of file process.c.

void release_thread ( struct task_struct t)

Definition at line 708 of file process.c.

void ret_from_kernel_execve ( struct pt_regs normal)

Definition at line 1069 of file process.c.

int set_dabr ( unsigned long  dabr,
unsigned long  dabrx 
)

Definition at line 376 of file process.c.

int set_endian ( struct task_struct tsk,
unsigned int  val 
)

Definition at line 975 of file process.c.

int set_fpexc_mode ( struct task_struct tsk,
unsigned int  val 
)

Definition at line 921 of file process.c.

int set_unalign_ctl ( struct task_struct tsk,
unsigned int  val 
)

Definition at line 1019 of file process.c.

void show_regs ( struct pt_regs regs)

Definition at line 640 of file process.c.

void show_stack ( struct task_struct tsk,
unsigned long stack 
)

Definition at line 1140 of file process.c.

void start_thread ( struct pt_regs regs,
unsigned long  start,
unsigned long  sp 
)

Definition at line 835 of file process.c.

int sys_clone ( unsigned long  clone_flags,
unsigned long  usp,
int __user parent_tidp,
void __user child_threadptr,
int __user child_tidp,
int  p6,
struct pt_regs regs 
)

Definition at line 1032 of file process.c.

int sys_fork ( unsigned long  p1,
unsigned long  p2,
unsigned long  p3,
unsigned long  p4,
unsigned long  p5,
unsigned long  p6,
struct pt_regs regs 
)

Definition at line 1049 of file process.c.

int sys_vfork ( unsigned long  p1,
unsigned long  p2,
unsigned long  p3,
unsigned long  p4,
unsigned long  p5,
unsigned long  p6,
struct pt_regs regs 
)

Definition at line 1057 of file process.c.

int validate_sp ( unsigned long  sp,
struct task_struct p,
unsigned long  nbytes 
)

Definition at line 1099 of file process.c.

Variable Documentation

unsigned long dscr_default
struct task_struct* last_task_used_altivec = NULL

Definition at line 64 of file process.c.

struct task_struct* last_task_used_math = NULL

Definition at line 63 of file process.c.

struct task_struct* last_task_used_spe = NULL

Definition at line 66 of file process.c.

struct task_struct* last_task_used_vsx = NULL

Definition at line 65 of file process.c.