Lines Matching refs:last_pid
38 int last_pid; variable
97 beginpid = last_pid; in get_pid()
98 if((++last_pid) & 0xffff8000) { in get_pid()
99 last_pid = 300; /* Skip daemons etc. */ in get_pid()
102 if(last_pid >= next_safe) { in get_pid()
108 if(p->pid == last_pid || in get_pid()
109 p->pgrp == last_pid || in get_pid()
110 p->tgid == last_pid || in get_pid()
111 p->session == last_pid) { in get_pid()
112 if(++last_pid >= next_safe) { in get_pid()
113 if(last_pid & 0xffff8000) in get_pid()
114 last_pid = 300; in get_pid()
117 if(unlikely(last_pid == beginpid)) { in get_pid()
123 if(p->pid > last_pid && next_safe > p->pid) in get_pid()
125 if(p->pgrp > last_pid && next_safe > p->pgrp) in get_pid()
127 if(p->tgid > last_pid && next_safe > p->tgid) in get_pid()
129 if(p->session > last_pid && next_safe > p->session) in get_pid()
134 pid = last_pid; in get_pid()