tag | line | file | source code |
pid | 71 | fs/locks.c | flock.l_pid = fl->fl_owner->pid; |
pid | 79 | fs/proc/array.c | static struct task_struct ** get_task(pid_t pid) |
pid | 85 | fs/proc/array.c | if (*p && (*p)->pid == pid) |
pid | 140 | fs/proc/array.c | static int get_env(int pid, char * buffer) |
pid | 142 | fs/proc/array.c | struct task_struct ** p = get_task(pid); |
pid | 149 | fs/proc/array.c | static int get_arg(int pid, char * buffer) |
pid | 151 | fs/proc/array.c | struct task_struct ** p = get_task(pid); |
pid | 180 | fs/proc/array.c | static int get_stat(int pid, char * buffer) |
pid | 182 | fs/proc/array.c | struct task_struct ** p = get_task(pid); |
pid | 209 | fs/proc/array.c | pid, |
pid | 212 | fs/proc/array.c | (*p)->p_pptr->pid, |
pid | 248 | fs/proc/array.c | static int get_statm(int pid, char * buffer) |
pid | 250 | fs/proc/array.c | struct task_struct ** p = get_task(pid); |
pid | 300 | fs/proc/array.c | unsigned int type, pid; |
pid | 308 | fs/proc/array.c | pid = type >> 16; |
pid | 324 | fs/proc/array.c | length = get_env(pid, page); |
pid | 327 | fs/proc/array.c | length = get_arg(pid, page); |
pid | 330 | fs/proc/array.c | length = get_stat(pid, page); |
pid | 333 | fs/proc/array.c | length = get_statm(pid, page); |
pid | 93 | fs/proc/base.c | unsigned int pid, ino; |
pid | 104 | fs/proc/base.c | pid = ino >> 16; |
pid | 115 | fs/proc/base.c | ino = (pid << 16) + base_dir[i].low_ino; |
pid | 117 | fs/proc/base.c | if (task[i] && task[i]->pid == pid) |
pid | 119 | fs/proc/base.c | if (!pid || i >= NR_TASKS) { |
pid | 135 | fs/proc/base.c | unsigned int pid, ino; |
pid | 141 | fs/proc/base.c | pid = ino >> 16; |
pid | 143 | fs/proc/base.c | if (task[i] && task[i]->pid == pid) |
pid | 145 | fs/proc/base.c | if (!pid || i >= NR_TASKS) |
pid | 153 | fs/proc/base.c | ino |= (pid << 16); |
pid | 56 | fs/proc/fd.c | unsigned int ino, pid, fd, c; |
pid | 63 | fs/proc/fd.c | pid = ino >> 16; |
pid | 69 | fs/proc/fd.c | if (!pid || ino > 1 || !S_ISDIR(dir->i_mode)) { |
pid | 79 | fs/proc/fd.c | if (!(*result = iget(sb,(pid << 16)+2))) { |
pid | 103 | fs/proc/fd.c | if ((p = task[i]) && p->pid == pid) |
pid | 105 | fs/proc/fd.c | if (!pid || i >= NR_TASKS) |
pid | 110 | fs/proc/fd.c | ino = (pid << 16) + 0x100 + fd; |
pid | 114 | fs/proc/fd.c | ino = (pid << 16) + 0x200 + fd; |
pid | 125 | fs/proc/fd.c | unsigned int fd, pid, ino; |
pid | 131 | fs/proc/fd.c | pid = ino >> 16; |
pid | 154 | fs/proc/fd.c | if ((p = task[i]) && p->pid == pid) |
pid | 174 | fs/proc/fd.c | ino = (pid << 16) + 0x100 + fd; |
pid | 176 | fs/proc/fd.c | ino = (pid << 16) + 0x200 + fd; |
pid | 74 | fs/proc/inode.c | unsigned long ino, pid; |
pid | 87 | fs/proc/inode.c | pid = ino >> 16; |
pid | 90 | fs/proc/inode.c | if ((p = task[i]) && (p->pid == pid)) |
pid | 103 | fs/proc/inode.c | if (!pid) { |
pid | 44 | fs/proc/link.c | unsigned int pid, ino; |
pid | 54 | fs/proc/link.c | pid = ino >> 16; |
pid | 58 | fs/proc/link.c | if ((p = task[i]) && p->pid == pid) |
pid | 25 | fs/proc/mem.c | unsigned long addr, pid, cr3; |
pid | 32 | fs/proc/mem.c | pid = inode->i_ino; |
pid | 33 | fs/proc/mem.c | pid >>= 16; |
pid | 36 | fs/proc/mem.c | if (task[i] && task[i]->pid == pid) { |
pid | 74 | fs/proc/mem.c | unsigned long addr, pid, cr3; |
pid | 82 | fs/proc/mem.c | pid = inode->i_ino; |
pid | 83 | fs/proc/mem.c | pid >>= 16; |
pid | 86 | fs/proc/mem.c | if (task[i] && task[i]->pid == pid) { |
pid | 69 | fs/proc/root.c | unsigned int pid, c; |
pid | 89 | fs/proc/root.c | ino = (current->pid << 16) + 2; |
pid | 91 | fs/proc/root.c | pid = 0; |
pid | 96 | fs/proc/root.c | pid = 0; |
pid | 99 | fs/proc/root.c | pid *= 10; |
pid | 100 | fs/proc/root.c | pid += c; |
pid | 101 | fs/proc/root.c | if (pid & 0xffff0000) { |
pid | 102 | fs/proc/root.c | pid = 0; |
pid | 107 | fs/proc/root.c | if (task[i] && task[i]->pid == pid) |
pid | 109 | fs/proc/root.c | if (!pid || i >= NR_TASKS) { |
pid | 113 | fs/proc/root.c | ino = (pid << 16) + 2; |
pid | 127 | fs/proc/root.c | unsigned int nr,pid; |
pid | 152 | fs/proc/root.c | if (!p || !(pid = p->pid)) |
pid | 154 | fs/proc/root.c | if (pid & 0xffff0000) |
pid | 158 | fs/proc/root.c | while (pid >= j) { |
pid | 163 | fs/proc/root.c | put_fs_long((pid << 16)+2, &dirent->d_ino); |
pid | 167 | fs/proc/root.c | put_fs_byte('0'+(pid % 10), i+dirent->d_name); |
pid | 168 | fs/proc/root.c | pid /= 10; |
pid | 162 | include/linux/sched.h | long pid,pgrp,session,leader; |
pid | 52 | init/main.c | static inline _syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options) |
pid | 348 | init/main.c | int pid,i; |
pid | 361 | init/main.c | if (!(pid=fork())) { |
pid | 368 | init/main.c | if (pid>0) |
pid | 369 | init/main.c | while (pid != wait(&i)) |
pid | 372 | init/main.c | if ((pid = fork()) < 0) { |
pid | 376 | init/main.c | if (!pid) { |
pid | 385 | init/main.c | if (pid == wait(&i)) |
pid | 387 | init/main.c | printf("\n\rchild %d died with code %04x\n\r",pid,i); |
pid | 307 | kernel/chr_drv/tty_io.c | extern int kill_proc(int pid, int sig, int priv); |
pid | 275 | kernel/chr_drv/vt.c | vt_cons[console].vt_pid = current->pid; |
pid | 115 | kernel/exit.c | task[i]->pid); |
pid | 118 | kernel/exit.c | task[i]->pid); |
pid | 121 | kernel/exit.c | task[i]->pid); |
pid | 124 | kernel/exit.c | task[i]->pid); |
pid | 127 | kernel/exit.c | task[i]->pid); |
pid | 130 | kernel/exit.c | task[i]->pid); |
pid | 133 | kernel/exit.c | task[i]->pid); |
pid | 136 | kernel/exit.c | task[i]->pid); |
pid | 141 | kernel/exit.c | task[i]->pid, task[i]->p_osptr->pid, |
pid | 142 | kernel/exit.c | task[i]->p_osptr->p_pptr->pid); |
pid | 146 | kernel/exit.c | task[i]->pid, task[i]->p_osptr->pid); |
pid | 152 | kernel/exit.c | task[i]->pid, task[i]->p_osptr->pid, |
pid | 153 | kernel/exit.c | task[i]->p_osptr->p_pptr->pid); |
pid | 157 | kernel/exit.c | task[i]->pid, task[i]->p_ysptr->pid); |
pid | 163 | kernel/exit.c | task[i]->pid, task[i]->p_cptr->pid); |
pid | 167 | kernel/exit.c | task[i]->pid, task[i]->p_cptr->pid); |
pid | 189 | kernel/exit.c | if ((*p)->pid == pgrp) |
pid | 240 | kernel/exit.c | int kill_proc(int pid, int sig, int priv) |
pid | 247 | kernel/exit.c | if (*p && (*p)->pid == pid) |
pid | 256 | kernel/exit.c | int sys_kill(int pid,int sig) |
pid | 261 | kernel/exit.c | if (!pid) |
pid | 263 | kernel/exit.c | if (pid == -1) { |
pid | 265 | kernel/exit.c | if (*p && (*p)->pid > 1 && *p != current) { |
pid | 272 | kernel/exit.c | if (pid < 0) |
pid | 273 | kernel/exit.c | return(kill_pg(-pid,sig,0)); |
pid | 275 | kernel/exit.c | return(kill_proc(pid,sig,0)); |
pid | 294 | kernel/exit.c | ((*p)->p_pptr->pid == 1)) |
pid | 450 | kernel/exit.c | int sys_wait4(pid_t pid,unsigned long * stat_addr, int options, struct rusage * ru) |
pid | 465 | kernel/exit.c | if (pid>0) { |
pid | 466 | kernel/exit.c | if (p->pid != pid) |
pid | 468 | kernel/exit.c | } else if (!pid) { |
pid | 471 | kernel/exit.c | } else if (pid != -1) { |
pid | 472 | kernel/exit.c | if (p->pgrp != -pid) |
pid | 487 | kernel/exit.c | return p->pid; |
pid | 495 | kernel/exit.c | flag = p->pid; |
pid | 534 | kernel/exit.c | int sys_waitpid(pid_t pid,unsigned long * stat_addr, int options) |
pid | 536 | kernel/exit.c | return sys_wait4(pid, stat_addr, options, NULL); |
pid | 42 | kernel/fork.c | if (task[i]->pid == last_pid || task[i]->pgrp == last_pid) |
pid | 90 | kernel/fork.c | p->pid = last_pid; |
pid | 91 | kernel/fork.c | if (p->pid > 1) |
pid | 156 | kernel/fork.c | return p->pid; |
pid | 34 | kernel/ptrace.c | static inline struct task_struct * get_task(int pid) |
pid | 39 | kernel/ptrace.c | if (task[i] != NULL && (task[i]->pid == pid)) |
pid | 220 | kernel/ptrace.c | int sys_ptrace(long request, long pid, long addr, long data) |
pid | 232 | kernel/ptrace.c | if (pid == 1) /* you may not mess with init */ |
pid | 234 | kernel/ptrace.c | if (!(child = get_task(pid))) |
pid | 475 | kernel/sched.c | return current->pid; |
pid | 480 | kernel/sched.c | return current->p_pptr->pid; |
pid | 518 | kernel/sched.c | printk("%d: pid=%d, state=%d, father=%d, child=%d, ",(p == current)?-nr:nr,p->pid, |
pid | 519 | kernel/sched.c | p->state, p->p_pptr->pid, p->p_cptr ? p->p_cptr->pid : -1); |
pid | 532 | kernel/sched.c | p->p_ysptr ? p->p_ysptr->pid : -1, |
pid | 533 | kernel/sched.c | p->p_osptr ? p->p_osptr->pid : -1); |
pid | 144 | kernel/signal.c | extern int sys_waitpid(pid_t pid,unsigned long * stat_addr, int options); |
pid | 238 | kernel/signal.c | if (current->pid == 1) |
pid | 44 | kernel/sys.c | return(p->pid == who); |
pid | 459 | kernel/sys.c | int sys_setpgid(pid_t pid, pid_t pgid) |
pid | 463 | kernel/sys.c | if (!pid) |
pid | 464 | kernel/sys.c | pid = current->pid; |
pid | 466 | kernel/sys.c | pgid = current->pid; |
pid | 470 | kernel/sys.c | if (task[i] && (task[i]->pid == pid) && |
pid | 476 | kernel/sys.c | ((pgid != pid) && |
pid | 495 | kernel/sys.c | current->session = current->pgrp = current->pid; |
pid | 73 | kernel/traps.c | printk("Pid: %d, process nr: %d\n",current->pid,0xffff & i); |
pid | 11 | lib/wait.c | _syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options) |
pid | 687 | net/tcp/sock.c | if (!suser() && current->pgrp != -arg && current->pid != arg) |
pid | 2497 | net/tcp/tcp.c | extern int kill_proc (int pid, int sig, int priv); |