Lines Matching refs:pid
67 proc_will_set_clean(pid_t pid) in proc_will_set_clean() argument
69 proc_set_dirty(pid, false); in proc_will_set_clean()
70 T_LOG("pid[%d] --> now clean", pid); in proc_will_set_clean()
75 proc_will_set_dirty(pid_t pid) in proc_will_set_dirty() argument
77 proc_set_dirty(pid, true); in proc_will_set_dirty()
78 T_LOG("pid[%d] --> now dirty", pid); in proc_will_set_dirty()
83 proc_set_managed(pid_t pid, bool managed) in proc_set_managed() argument
86 err = memorystatus_control(MEMORYSTATUS_CMD_SET_PROCESS_IS_MANAGED, pid, in proc_set_managed()
577 pid_t pid = getpid(); variable
579 set_priority(pid, JETSAM_PRIORITY_UI_SUPPORT, 0, false);
580 set_memlimits(pid, memlimit_active, memlimit_inactive, true, true);
582 ret = proc_track_dirty(pid, PROC_DIRTY_TRACK | PROC_DIRTY_ALLOW_IDLE_EXIT | PROC_DIRTY_DEFER);
585 check_properties(pid, JETSAM_PRIORITY_IDLE_DEFERRED, memlimit_active, 0x0,
591 check_properties(pid, JETSAM_PRIORITY_IDLE, memlimit_inactive, 0x0, false,
594 proc_set_dirty(pid, true);
596 check_properties(pid, JETSAM_PRIORITY_UI_SUPPORT, memlimit_active, 0x0,
599 proc_set_dirty(pid, false);
601 check_properties(pid, JETSAM_PRIORITY_IDLE_DEFERRED, memlimit_active, 0x0,
607 check_properties(pid, JETSAM_PRIORITY_IDLE, memlimit_inactive, 0x0, false,
610 proc_set_dirty(pid, true);
612 check_properties(pid, JETSAM_PRIORITY_UI_SUPPORT, memlimit_active, 0x0,
615 proc_set_dirty(pid, false);
617 check_properties(pid, JETSAM_PRIORITY_IDLE_DEFERRED, memlimit_active, 0x0, false,