Lines Matching refs:pid
19 #define procfs_file_alloca(pid, field) \ argument
21 pid_t _pid_ = (pid); \
41 int get_process_comm(pid_t pid, char **ret);
42 int get_process_cmdline(pid_t pid, size_t max_columns, ProcessCmdlineFlags flags, char **ret);
43 int get_process_exe(pid_t pid, char **ret);
44 int get_process_uid(pid_t pid, uid_t *ret);
45 int get_process_gid(pid_t pid, gid_t *ret);
46 int get_process_capeff(pid_t pid, char **ret);
47 int get_process_cwd(pid_t pid, char **ret);
48 int get_process_root(pid_t pid, char **ret);
49 int get_process_environ(pid_t pid, char **ret);
50 int get_process_ppid(pid_t pid, pid_t *ret);
51 int get_process_umask(pid_t pid, mode_t *ret);
53 int wait_for_terminate(pid_t pid, siginfo_t *status);
63 int wait_for_terminate_and_check(const char *name, pid_t pid, WaitFlags flags);
64 int wait_for_terminate_with_timeout(pid_t pid, usec_t timeout);
66 void sigkill_wait(pid_t pid);
67 void sigkill_waitp(pid_t *pid);
68 void sigterm_wait(pid_t pid);
70 int kill_and_sigcont(pid_t pid, int sig);
73 int is_kernel_thread(pid_t pid);
75 int getenv_for_pid(pid_t pid, const char *field, char **_value);
77 bool pid_is_alive(pid_t pid);
78 bool pid_is_unwaited(pid_t pid);
79 int pid_is_my_child(pid_t pid);
80 int pid_from_same_root_fs(pid_t pid);
109 static inline void* PID_TO_PTR(pid_t pid) { in PID_TO_PTR() argument
110 return (void*) ((uintptr_t) pid); in PID_TO_PTR()
179 #define TAKE_PID(pid) \ argument
181 pid_t *_ppid_ = &(pid); \