• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/xnu-2782.1.97/bsd/kern/

Lines Matching defs:pid

190 static int csops_internal(pid_t pid, int ops, user_addr_t uaddr, user_size_t usersize, user_addr_t uaddittoken);
346 proc_find(int pid)
348 return(proc_findinternal(pid, 0));
352 proc_findinternal(int pid, int locked)
360 p = pfind_locked(pid);
446 proc_find_zombref(int pid)
453 p = pfind_locked(pid);
704 proc_name(int pid, char * buf, int size)
708 if ((p = proc_find(pid)) != PROC_NULL) {
778 proc_signal(int pid, int signum)
782 if ((p = proc_find(pid)) != PROC_NULL) {
789 proc_issignal(int pid, sigset_t mask)
794 if ((p = proc_find(pid)) != PROC_NULL) {
986 pfind_locked(pid_t pid)
993 if (!pid)
996 for (p = PIDHASH(pid)->lh_first; p != 0; p = p->p_hash.le_next) {
997 if (p->p_pid == pid) {
1000 if ((p !=q) && (q->p_pid == pid))
1001 panic("two procs with same pid %p:%p:%d:%d\n", p, q, p->p_pid, q->p_pid);
1014 pzfind(pid_t pid)
1022 if (p->p_pid == pid)
1174 panic("enterpgrp: new pgrp and pid != pgid");
1578 * proc_core_name(name, uid, pid)
1579 * Expand the name described in corefilename, using name, uid, and pid.
1582 * %P process id (pid)
1589 proc_core_name(const char *name, uid_t uid, pid_t pid, char *cf_name,
1593 char id_buf[11]; /* Buffer for pid/uid -- max 4B */
1612 snprintf(id_buf, sizeof(id_buf), "%u", pid);
1639 log(LOG_ERR, "pid %ld (%s), uid (%u): corename is too long\n",
1640 (long)pid, name, (uint32_t)uid);
1864 return(csops_internal(uap->pid, uap->ops, uap->useraddr,
1873 return(csops_internal(uap->pid, uap->ops, uap->useraddr,
1904 csops_internal(pid_t pid, int ops, user_addr_t uaddr, user_size_t usersize, user_addr_t uaudittoken)
1918 if (pid == 0)
1919 pid = proc_selfpid();
1920 if (pid == proc_selfpid())
1938 pt = proc_find(pid);
1949 /* verify the audit token pid/idversion matches with proc */
1979 printf("CODE SIGNING: marked invalid by pid %d: "
2952 proc_getpcontrol(int pid, int * pcontrolp)
2956 p = proc_find(pid);
2980 printf("low swap: throttling pid %d (%s)\n", p->p_pid, p->p_comm);
2986 printf("low swap: suspending pid %d (%s)\n", p->p_pid, p->p_comm);
2993 printf("low swap: killing pid %d (%s)\n", p->p_pid, p->p_comm);
3015 proc_resetpcontrol(int pid)
3026 p = proc_find(pid);
3039 printf("low swap: unthrottling pid %d (%s)\n", p->p_pid, p->p_comm);
3045 printf("low swap: resuming pid %d (%s)\n", p->p_pid, p->p_comm);
3053 printf("low swap: attempt to unkill pid %d (%s) ignored\n", p->p_pid, p->p_comm);
3200 * in case the proc exited and the pid got reused while
3205 printf("low swap: killing pid %d (%s)\n", p->p_pid, p->p_comm);
3223 * in case the proc exited and the pid got reused while
3250 pid_t target_pid = uap->pid;