Lines Matching defs:pid
189 static struct knote * vm_find_knote_from_pid(pid_t pid) {
199 if (current_pid == pid) {
212 /* If memory is low, and there's a pid to target... */
225 VM_PRESSURE_DEBUG(0, "[vm_pressure] can't find candidate pid\n");
230 VM_PRESSURE_DEBUG(1, "[vm_pressure] sending event to pid %d, free pages %d\n", kn->kn_kq->kq_p->p_pid, memorystatus_available_pages);
246 boolean_t vm_dispatch_pressure_note_to_pid(pid_t pid) {
251 kn = vm_find_knote_from_pid(pid);
253 KNOTE(&vm_pressure_klist, pid);
305 VM_PRESSURE_DEBUG(1, "[vm_pressure] task_info for pid %d failed with %d\n", p->p_pid, kr);
324 VM_PRESSURE_DEBUG(0, "[vm_pressure] threshold failed for pid %d with %u resident...\n", p->p_pid, resident_size);
334 VM_PRESSURE_DEBUG(1, "[vm_pressure] sending event to pid %d with %u resident\n", kn_max->kn_kq->kq_p->p_pid, resident_max);