Lines Matching refs:ke
229 struct kevent ke; in next_proc() local
258 switch (kevent(kq, NULL, 0, &ke, 1, tsp)) { in next_proc()
272 (void)waitpid(ke.ident, NULL, WNOHANG); in next_proc()
273 if ((j = find_proc(ke.ident))) { in next_proc()
274 j->pstatus = ke.data; in next_proc()
839 struct kevent ke; in add_proc() local
845 EV_SET(&ke, pid, EVFILT_PROC, EV_ADD, NOTE_EXIT, 0, NULL); in add_proc()
846 if (kevent(kq, &ke, 1, NULL, 0, NULL) < 0) { in add_proc()
884 struct kevent ke; in clear_procs() local
892 EV_SET(&ke, ph->pid, EVFILT_PROC, EV_DELETE, in clear_procs()
894 (void)kevent(kq, &ke, 1, NULL, 0, NULL); in clear_procs()