Lines Matching defs:pid
2781 "sched_getscheduler($module, pid, /)\n"
2784 "Get the scheduling policy for the process identified by pid.\n"
2786 "Passing 0 for pid returns the scheduling policy for the calling process.");
2792 os_sched_getscheduler_impl(PyObject *module, pid_t pid);
2798 pid_t pid;
2800 if (!PyArg_Parse(arg, "" _Py_PARSE_PID ":sched_getscheduler", &pid)) {
2803 return_value = os_sched_getscheduler_impl(module, pid);
2852 "sched_setscheduler($module, pid, policy, param, /)\n"
2855 "Set the scheduling policy for the process identified by pid.\n"
2857 "If pid is 0, the calling process is changed.\n"
2864 os_sched_setscheduler_impl(PyObject *module, pid_t pid, int policy,
2871 pid_t pid;
2876 &pid, &policy, ¶m_obj)) {
2879 return_value = os_sched_setscheduler_impl(module, pid, policy, param_obj);
2890 "sched_getparam($module, pid, /)\n"
2893 "Returns scheduling parameters for the process identified by pid.\n"
2895 "If pid is 0, returns parameters for the calling process.\n"
2902 os_sched_getparam_impl(PyObject *module, pid_t pid);
2908 pid_t pid;
2910 if (!PyArg_Parse(arg, "" _Py_PARSE_PID ":sched_getparam", &pid)) {
2913 return_value = os_sched_getparam_impl(module, pid);
2924 "sched_setparam($module, pid, param, /)\n"
2927 "Set scheduling parameters for the process identified by pid.\n"
2929 "If pid is 0, sets parameters for the calling process.\n"
2936 os_sched_setparam_impl(PyObject *module, pid_t pid, PyObject *param_obj);
2942 pid_t pid;
2946 &pid, ¶m_obj)) {
2949 return_value = os_sched_setparam_impl(module, pid, param_obj);
2960 "sched_rr_get_interval($module, pid, /)\n"
2963 "Return the round-robin quantum for the process identified by pid, in seconds.\n"
2971 os_sched_rr_get_interval_impl(PyObject *module, pid_t pid);
2977 pid_t pid;
2980 if (!PyArg_Parse(arg, "" _Py_PARSE_PID ":sched_rr_get_interval", &pid)) {
2983 _return_value = os_sched_rr_get_interval_impl(module, pid);
3020 "sched_setaffinity($module, pid, mask, /)\n"
3023 "Set the CPU affinity of the process identified by pid to mask.\n"
3031 os_sched_setaffinity_impl(PyObject *module, pid_t pid, PyObject *mask);
3037 pid_t pid;
3041 &pid, &mask)) {
3044 return_value = os_sched_setaffinity_impl(module, pid, mask);
3055 "sched_getaffinity($module, pid, /)\n"
3058 "Return the affinity of the process identified by pid (or the current process if zero).\n"
3066 os_sched_getaffinity_impl(PyObject *module, pid_t pid);
3072 pid_t pid;
3074 if (!PyArg_Parse(arg, "" _Py_PARSE_PID ":sched_getaffinity", &pid)) {
3077 return_value = os_sched_getaffinity_impl(module, pid);
3153 "Returns a tuple of (pid, master_fd).\n"
3154 "Like fork(), return pid of 0 to the child process,\n"
3155 "and pid of child to the parent process.\n"
3483 "getpgid($module, /, pid)\n"
3492 os_getpgid_impl(PyObject *module, pid_t pid);
3498 static const char * const _keywords[] = {"pid", NULL};
3500 pid_t pid;
3503 &pid)) {
3506 return_value = os_getpgid_impl(module, pid);
3630 "kill($module, pid, signal, /)\n"
3639 os_kill_impl(PyObject *module, pid_t pid, Py_ssize_t signal);
3645 pid_t pid;
3649 &pid, &signal)) {
3652 return_value = os_kill_impl(module, pid, signal);
3947 " (pid, status, rusage)");
3983 "wait4($module, /, pid, options)\n"
3989 " (pid, status, rusage)");
3995 os_wait4_impl(PyObject *module, pid_t pid, int options);
4001 static const char * const _keywords[] = {"pid", "options", NULL};
4003 pid_t pid;
4007 &pid, &options)) {
4010 return_value = os_wait4_impl(module, pid, options);
4066 "waitpid($module, pid, options, /)\n"
4072 " (pid, status)\n"
4080 os_waitpid_impl(PyObject *module, pid_t pid, int options);
4086 pid_t pid;
4090 &pid, &options)) {
4093 return_value = os_waitpid_impl(module, pid, options);
4104 "waitpid($module, pid, options, /)\n"
4110 " (pid, status << 8)\n"
4118 os_waitpid_impl(PyObject *module, intptr_t pid, int options);
4124 intptr_t pid;
4128 &pid, &options)) {
4131 return_value = os_waitpid_impl(module, pid, options);
4148 " (pid, status)");
4167 "pidfd_open($module, /, pid, flags=0)\n"
4170 "Return a file descriptor referring to the process *pid*.\n"
4179 os_pidfd_open_impl(PyObject *module, pid_t pid, unsigned int flags);
4185 static const char * const _keywords[] = {"pid", "flags", NULL};
4187 pid_t pid;
4191 &pid, _PyLong_UnsignedInt_Converter, &flags)) {
4194 return_value = os_pidfd_open_impl(module, pid, flags);
4368 "getsid($module, pid, /)\n"
4371 "Call the system call getsid(pid) and return the result.");
4377 os_getsid_impl(PyObject *module, pid_t pid);
4383 pid_t pid;
4385 if (!PyArg_Parse(arg, "" _Py_PARSE_PID ":getsid", &pid)) {
4388 return_value = os_getsid_impl(module, pid);
4421 "setpgid($module, pid, pgrp, /)\n"
4424 "Call the system call setpgid(pid, pgrp).");
4430 os_setpgid_impl(PyObject *module, pid_t pid, pid_t pgrp);
4436 pid_t pid;
4440 &pid, &pgrp)) {
4443 return_value = os_setpgid_impl(module, pid, pgrp);