tag | line | file | source code |
pid | 347 | drivers/char/tty_io.c | extern int kill_proc(int pid, int sig, int priv); |
pid | 425 | drivers/char/vt.c | vt_cons[console].vt_pid = current->pid; |
pid | 74 | fs/locks.c | flock.l_pid = fl->fl_owner->pid; |
pid | 123 | fs/proc/array.c | static struct task_struct ** get_task(pid_t pid) |
pid | 129 | fs/proc/array.c | if (*p && (*p)->pid == pid) |
pid | 182 | fs/proc/array.c | static int get_env(int pid, char * buffer) |
pid | 184 | fs/proc/array.c | struct task_struct ** p = get_task(pid); |
pid | 191 | fs/proc/array.c | static int get_arg(int pid, char * buffer) |
pid | 193 | fs/proc/array.c | struct task_struct ** p = get_task(pid); |
pid | 227 | fs/proc/array.c | static int get_stat(int pid, char * buffer) |
pid | 229 | fs/proc/array.c | struct task_struct ** p = get_task(pid); |
pid | 266 | fs/proc/array.c | pid, |
pid | 269 | fs/proc/array.c | (*p)->p_pptr->pid, |
pid | 305 | fs/proc/array.c | static int get_statm(int pid, char * buffer) |
pid | 307 | fs/proc/array.c | struct task_struct ** p = get_task(pid); |
pid | 352 | fs/proc/array.c | static int get_maps(int pid, char *buf) |
pid | 355 | fs/proc/array.c | struct task_struct **p = get_task(pid); |
pid | 423 | fs/proc/array.c | unsigned int type, pid; |
pid | 430 | fs/proc/array.c | pid = type >> 16; |
pid | 446 | fs/proc/array.c | length = get_env(pid, page); |
pid | 449 | fs/proc/array.c | length = get_arg(pid, page); |
pid | 452 | fs/proc/array.c | length = get_stat(pid, page); |
pid | 455 | fs/proc/array.c | length = get_statm(pid, page); |
pid | 466 | fs/proc/array.c | length = get_maps(pid, page); |
pid | 94 | fs/proc/base.c | unsigned int pid, ino; |
pid | 105 | fs/proc/base.c | pid = ino >> 16; |
pid | 116 | fs/proc/base.c | ino = (pid << 16) + base_dir[i].low_ino; |
pid | 118 | fs/proc/base.c | if (task[i] && task[i]->pid == pid) |
pid | 120 | fs/proc/base.c | if (!pid || i >= NR_TASKS) { |
pid | 136 | fs/proc/base.c | unsigned int pid, ino; |
pid | 142 | fs/proc/base.c | pid = ino >> 16; |
pid | 144 | fs/proc/base.c | if (task[i] && task[i]->pid == pid) |
pid | 146 | fs/proc/base.c | if (!pid || i >= NR_TASKS) |
pid | 154 | 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 | 119 | fs/proc/fd.c | ino = (pid << 16) + 0x200 + fd; |
pid | 130 | fs/proc/fd.c | unsigned int fd, pid, ino; |
pid | 136 | fs/proc/fd.c | pid = ino >> 16; |
pid | 159 | fs/proc/fd.c | if ((p = task[i]) && p->pid == pid) |
pid | 185 | fs/proc/fd.c | ino = (pid << 16) + 0x100 + fd; |
pid | 187 | fs/proc/fd.c | ino = (pid << 16) + 0x200 + fd; |
pid | 76 | fs/proc/inode.c | unsigned long ino, pid; |
pid | 89 | fs/proc/inode.c | pid = ino >> 16; |
pid | 92 | fs/proc/inode.c | if ((p = task[i]) && (p->pid == pid)) |
pid | 110 | 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 | 73 | fs/proc/mem.c | unsigned long addr, pid, cr3; |
pid | 81 | fs/proc/mem.c | pid = inode->i_ino; |
pid | 82 | fs/proc/mem.c | pid >>= 16; |
pid | 85 | fs/proc/mem.c | if (task[i] && task[i]->pid == pid) { |
pid | 76 | fs/proc/root.c | unsigned int pid, c; |
pid | 96 | fs/proc/root.c | ino = (current->pid << 16) + 2; |
pid | 98 | fs/proc/root.c | pid = 0; |
pid | 103 | fs/proc/root.c | pid = 0; |
pid | 106 | fs/proc/root.c | pid *= 10; |
pid | 107 | fs/proc/root.c | pid += c; |
pid | 108 | fs/proc/root.c | if (pid & 0xffff0000) { |
pid | 109 | fs/proc/root.c | pid = 0; |
pid | 114 | fs/proc/root.c | if (task[i] && task[i]->pid == pid) |
pid | 116 | fs/proc/root.c | if (!pid || i >= NR_TASKS) { |
pid | 120 | fs/proc/root.c | ino = (pid << 16) + 2; |
pid | 134 | fs/proc/root.c | unsigned int nr,pid; |
pid | 159 | fs/proc/root.c | if (!p || !(pid = p->pid)) |
pid | 161 | fs/proc/root.c | if (pid & 0xffff0000) |
pid | 165 | fs/proc/root.c | while (pid >= j) { |
pid | 170 | fs/proc/root.c | put_fs_long((pid << 16)+2, &dirent->d_ino); |
pid | 174 | fs/proc/root.c | put_fs_byte('0'+(pid % 10), i+dirent->d_name); |
pid | 175 | fs/proc/root.c | pid /= 10; |
pid | 46 | include/linux/kernel.h | int kill_proc(int pid, int sig, int priv); |
pid | 188 | include/linux/sched.h | int pid,pgrp,session,leader; |
pid | 59 | init/main.c | static inline _syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options) |
pid | 471 | init/main.c | int pid,i; |
pid | 484 | init/main.c | if (!(pid=fork())) { |
pid | 491 | init/main.c | if (pid>0) |
pid | 492 | init/main.c | while (pid != wait(&i)) |
pid | 495 | init/main.c | if ((pid = fork()) < 0) { |
pid | 499 | init/main.c | if (!pid) { |
pid | 508 | init/main.c | if (pid == wait(&i)) |
pid | 510 | init/main.c | printf("\n\rchild %d died with code %04x\n\r",pid,i); |
pid | 104 | ipc/msg.c | msq->msg_lspid = current->pid; |
pid | 189 | ipc/msg.c | msq->msg_lrpid = current->pid; |
pid | 435 | ipc/sem.c | curr->sempid = current->pid; |
pid | 491 | ipc/sem.c | sem->sempid = current->pid; |
pid | 110 | ipc/shm.c | shp->shm_cpid = current->pid; |
pid | 463 | ipc/shm.c | shp->shm_lpid = current->pid; |
pid | 493 | ipc/shm.c | shp->shm_lpid = current->pid; |
pid | 568 | ipc/shm.c | shp->shm_lpid = current->pid; |
pid | 134 | kernel/exit.c | task[i]->pid); |
pid | 137 | kernel/exit.c | task[i]->pid); |
pid | 140 | kernel/exit.c | task[i]->pid); |
pid | 143 | kernel/exit.c | task[i]->pid); |
pid | 146 | kernel/exit.c | task[i]->pid); |
pid | 149 | kernel/exit.c | task[i]->pid); |
pid | 152 | kernel/exit.c | task[i]->pid); |
pid | 155 | kernel/exit.c | task[i]->pid); |
pid | 160 | kernel/exit.c | task[i]->pid, task[i]->p_osptr->pid, |
pid | 161 | kernel/exit.c | task[i]->p_osptr->p_pptr->pid); |
pid | 165 | kernel/exit.c | task[i]->pid, task[i]->p_osptr->pid); |
pid | 171 | kernel/exit.c | task[i]->pid, task[i]->p_osptr->pid, |
pid | 172 | kernel/exit.c | task[i]->p_osptr->p_pptr->pid); |
pid | 176 | kernel/exit.c | task[i]->pid, task[i]->p_ysptr->pid); |
pid | 182 | kernel/exit.c | task[i]->pid, task[i]->p_cptr->pid); |
pid | 186 | kernel/exit.c | task[i]->pid, task[i]->p_cptr->pid); |
pid | 208 | kernel/exit.c | if (p->pid == pgrp) |
pid | 261 | kernel/exit.c | int kill_proc(int pid, int sig, int priv) |
pid | 268 | kernel/exit.c | if (p && p->pid == pid) |
pid | 278 | kernel/exit.c | asmlinkage int sys_kill(int pid,int sig) |
pid | 282 | kernel/exit.c | if (!pid) |
pid | 284 | kernel/exit.c | if (pid == -1) { |
pid | 287 | kernel/exit.c | if (p->pid > 1 && p != current) { |
pid | 295 | kernel/exit.c | if (pid < 0) |
pid | 296 | kernel/exit.c | return(kill_pg(-pid,sig,0)); |
pid | 298 | kernel/exit.c | return(kill_proc(pid,sig,0)); |
pid | 316 | kernel/exit.c | (p->p_pptr->pid == 1)) |
pid | 484 | kernel/exit.c | asmlinkage int sys_wait4(pid_t pid,unsigned long * stat_addr, int options, struct rusage * ru) |
pid | 499 | kernel/exit.c | if (pid>0) { |
pid | 500 | kernel/exit.c | if (p->pid != pid) |
pid | 502 | kernel/exit.c | } else if (!pid) { |
pid | 505 | kernel/exit.c | } else if (pid != -1) { |
pid | 506 | kernel/exit.c | if (p->pgrp != -pid) |
pid | 525 | kernel/exit.c | retval = p->pid; |
pid | 534 | kernel/exit.c | flag = p->pid; |
pid | 575 | kernel/exit.c | asmlinkage int sys_waitpid(pid_t pid,unsigned long * stat_addr, int options) |
pid | 577 | kernel/exit.c | return sys_wait4(pid, stat_addr, options, NULL); |
pid | 59 | kernel/fork.c | if (task[i]->pid == last_pid || task[i]->pgrp == last_pid || |
pid | 142 | kernel/fork.c | p->pid = last_pid; |
pid | 223 | kernel/fork.c | return p->pid; |
pid | 36 | kernel/ptrace.c | static inline struct task_struct * get_task(int pid) |
pid | 41 | kernel/ptrace.c | if (task[i] != NULL && (task[i]->pid == pid)) |
pid | 237 | kernel/ptrace.c | asmlinkage int sys_ptrace(long request, long pid, long addr, long data) |
pid | 253 | kernel/ptrace.c | if (pid == 1) /* you may not mess with init */ |
pid | 255 | kernel/ptrace.c | if (!(child = get_task(pid))) |
pid | 705 | kernel/sched.c | return current->pid; |
pid | 710 | kernel/sched.c | return current->p_opptr->pid; |
pid | 762 | kernel/sched.c | p->tss.esp - p->kernel_stack_page, p->pid, p->p_pptr->pid); |
pid | 764 | kernel/sched.c | printk("%5d ", p->p_cptr->pid); |
pid | 768 | kernel/sched.c | printk("%7d", p->p_ysptr->pid); |
pid | 772 | kernel/sched.c | printk(" %5d\n", p->p_osptr->pid); |
pid | 207 | kernel/signal.c | asmlinkage int sys_waitpid(pid_t pid,unsigned long * stat_addr, int options); |
pid | 342 | kernel/signal.c | if (current->pid == 1) |
pid | 39 | kernel/sys.c | return(p->pid == who); |
pid | 465 | kernel/sys.c | asmlinkage int sys_setpgid(pid_t pid, pid_t pgid) |
pid | 469 | kernel/sys.c | if (!pid) |
pid | 470 | kernel/sys.c | pid = current->pid; |
pid | 472 | kernel/sys.c | pgid = current->pid; |
pid | 476 | kernel/sys.c | if (task[i] && (task[i]->pid == pid) && |
pid | 483 | kernel/sys.c | ((pgid != pid) && |
pid | 492 | kernel/sys.c | asmlinkage int sys_getpgid(pid_t pid) |
pid | 496 | kernel/sys.c | if (!pid) |
pid | 499 | kernel/sys.c | if (p->pid == pid) |
pid | 515 | kernel/sys.c | current->session = current->pgrp = current->pid; |
pid | 97 | kernel/traps.c | printk("Pid: %d, process nr: %d (%s)\n", current->pid, 0xffff & i, current->comm); |
pid | 11 | lib/wait.c | _syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options) |
pid | 468 | net/inet/sock.c | current->pid != arg) return(-EPERM); |
pid | 2868 | net/inet/tcp.c | extern int kill_proc(int pid, int sig, int priv); |