Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
exit.c File Reference
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/capability.h>
#include <linux/completion.h>
#include <linux/personality.h>
#include <linux/tty.h>
#include <linux/iocontext.h>
#include <linux/key.h>
#include <linux/security.h>
#include <linux/cpu.h>
#include <linux/acct.h>
#include <linux/tsacct_kern.h>
#include <linux/file.h>
#include <linux/fdtable.h>
#include <linux/binfmts.h>
#include <linux/nsproxy.h>
#include <linux/pid_namespace.h>
#include <linux/ptrace.h>
#include <linux/profile.h>
#include <linux/mount.h>
#include <linux/proc_fs.h>
#include <linux/kthread.h>
#include <linux/mempolicy.h>
#include <linux/taskstats_kern.h>
#include <linux/delayacct.h>
#include <linux/freezer.h>
#include <linux/cgroup.h>
#include <linux/syscalls.h>
#include <linux/signal.h>
#include <linux/posix-timers.h>
#include <linux/cn_proc.h>
#include <linux/mutex.h>
#include <linux/futex.h>
#include <linux/pipe_fs_i.h>
#include <linux/audit.h>
#include <linux/resource.h>
#include <linux/blkdev.h>
#include <linux/task_io_accounting_ops.h>
#include <linux/tracehook.h>
#include <linux/fs_struct.h>
#include <linux/init_task.h>
#include <linux/perf_event.h>
#include <trace/events/sched.h>
#include <linux/hw_breakpoint.h>
#include <linux/oom.h>
#include <linux/writeback.h>
#include <linux/shm.h>
#include <asm/uaccess.h>
#include <asm/unistd.h>
#include <asm/pgtable.h>
#include <asm/mmu_context.h>

Go to the source code of this file.

Data Structures

struct  wait_opts
 

Functions

void release_task (struct task_struct *p)
 
struct pidsession_of_pgrp (struct pid *pgrp)
 
int is_current_pgrp_orphaned (void)
 
void __set_special_pids (struct pid *pid)
 
int allow_signal (int sig)
 
 EXPORT_SYMBOL (allow_signal)
 
int disallow_signal (int sig)
 
 EXPORT_SYMBOL (disallow_signal)
 
void daemonize (const char *name,...)
 
 EXPORT_SYMBOL (daemonize)
 
void do_exit (long code)
 
 EXPORT_SYMBOL_GPL (do_exit)
 
void complete_and_exit (struct completion *comp, long code)
 
 EXPORT_SYMBOL (complete_and_exit)
 
 SYSCALL_DEFINE1 (exit, int, error_code)
 
void do_group_exit (int exit_code)
 
 SYSCALL_DEFINE1 (exit_group, int, error_code)
 
void __wake_up_parent (struct task_struct *p, struct task_struct *parent)
 
 SYSCALL_DEFINE5 (waitid, int, which, pid_t, upid, struct siginfo __user *, infop, int, options, struct rusage __user *, ru)
 
 SYSCALL_DEFINE4 (wait4, pid_t, upid, int __user *, stat_addr, int, options, struct rusage __user *, ru)
 

Function Documentation

void __set_special_pids ( struct pid pid)

Definition at line 362 of file exit.c.

void __wake_up_parent ( struct task_struct p,
struct task_struct parent 
)

Definition at line 1609 of file exit.c.

int allow_signal ( int  sig)

Definition at line 384 of file exit.c.

void complete_and_exit ( struct completion comp,
long  code 
)

Definition at line 991 of file exit.c.

void daemonize ( const char name,
  ... 
)

Definition at line 424 of file exit.c.

int disallow_signal ( int  sig)

Definition at line 405 of file exit.c.

void do_exit ( long  code)

Definition at line 810 of file exit.c.

void do_group_exit ( int  exit_code)

Definition at line 1011 of file exit.c.

EXPORT_SYMBOL ( allow_signal  )
EXPORT_SYMBOL ( disallow_signal  )
EXPORT_SYMBOL ( daemonize  )
EXPORT_SYMBOL ( complete_and_exit  )
EXPORT_SYMBOL_GPL ( do_exit  )
int is_current_pgrp_orphaned ( void  )

Definition at line 271 of file exit.c.

void release_task ( struct task_struct p)

Definition at line 180 of file exit.c.

struct pid* session_of_pgrp ( struct pid pgrp)
read

Definition at line 231 of file exit.c.

SYSCALL_DEFINE1 ( exit  ,
int  ,
error_code   
)

Definition at line 1001 of file exit.c.

SYSCALL_DEFINE1 ( exit_group  ,
int  ,
error_code   
)

Definition at line 1042 of file exit.c.

SYSCALL_DEFINE4 ( wait4  ,
pid_t  ,
upid  ,
int __user ,
stat_addr  ,
int  ,
options  ,
struct rusage __user ,
ru   
)

Definition at line 1740 of file exit.c.

SYSCALL_DEFINE5 ( waitid  ,
int  ,
which  ,
pid_t  ,
upid  ,
struct siginfo __user ,
infop  ,
int  ,
options  ,
struct rusage __user ,
ru   
)

Definition at line 1669 of file exit.c.