|
| 1 | +from _typeshed import Incomplete |
| 2 | + |
| 3 | +# TODO: Add POSIX constants and check their aviability (see psutil_posix_add_constants) |
| 4 | +AF_LINK: Incomplete |
| 5 | + |
| 6 | +def getpagesize() -> int: ... |
| 7 | +def net_if_addrs(): ... |
| 8 | +def net_if_flags(nic_name: str, /) -> list[str]: ... |
| 9 | +def net_if_is_running(nic_name: str, /) -> bool: ... |
| 10 | +def net_if_mtu(nic_name: str, /) -> int: ... |
| 11 | +def proc_priority_get(pid: int, /) -> int: ... |
| 12 | +def proc_priority_set(pid: int, priority: int, /) -> None: ... |
| 13 | +def net_if_duplex_speed(nic_name: str, /): ... |
| 14 | +def proc_is_zombie(pid: int, /) -> bool: ... |
| 15 | + |
| 16 | +SIDL: Incomplete |
| 17 | +SRUN: Incomplete |
| 18 | +SSLEEP: Incomplete |
| 19 | +SSTOP: Incomplete |
| 20 | +SZOMB: Incomplete |
| 21 | +SWAIT: Incomplete # only FreeBSD |
| 22 | +SLOCK: Incomplete # only FreeBSD |
| 23 | +SDEAD: Incomplete # only OpenBSD and NetBSD |
| 24 | +SONPROC: Incomplete # only OpenBSD and NetBSD |
| 25 | +SSUSPENDED: Incomplete # only NetBSD |
| 26 | +TCPS_CLOSED: Incomplete |
| 27 | +TCPS_CLOSING: Incomplete |
| 28 | +TCPS_CLOSE_WAIT: Incomplete |
| 29 | +TCPS_LISTEN: Incomplete |
| 30 | +TCPS_ESTABLISHED: Incomplete |
| 31 | +TCPS_SYN_SENT: Incomplete |
| 32 | +TCPS_SYN_RECEIVED: Incomplete |
| 33 | +TCPS_FIN_WAIT_1: Incomplete |
| 34 | +TCPS_FIN_WAIT_2: Incomplete |
| 35 | +TCPS_LAST_ACK: Incomplete |
| 36 | +TCPS_TIME_WAIT: Incomplete |
| 37 | +PSUTIL_CONN_NONE: Incomplete |
| 38 | + |
| 39 | +def proc_cmdline(*args, **kwargs): ... |
| 40 | +def proc_cwd(*args, **kwargs): ... |
| 41 | +def proc_environ(*args, **kwargs): ... |
| 42 | +def proc_name(*args, **kwargs): ... |
| 43 | +def proc_num_fds(*args, **kwargs): ... |
| 44 | +def proc_oneshot_info(*args, **kwargs): ... |
| 45 | +def proc_open_files(*args, **kwargs): ... |
| 46 | +def proc_threads(*args, **kwargs): ... |
| 47 | +def proc_num_threads(*args, **kwargs): ... # only FreeBSD and OpenBSD |
| 48 | +def proc_cpu_affinity_get(*args, **kwargs): ... # only FreeBSD |
| 49 | +def proc_cpu_affinity_set(*args, **kwargs): ... # only FreeBSD |
| 50 | +def proc_exe(*args, **kwargs): ... # only FreeBSD |
| 51 | +def proc_getrlimit(*args, **kwargs): ... # only FreeBSD |
| 52 | +def proc_memory_maps(*args, **kwargs): ... # only FreeBSD |
| 53 | +def proc_net_connections(*args, **kwargs): ... # only FreeBSD |
| 54 | +def proc_setrlimit(*args, **kwargs): ... # only FreeBSD |
| 55 | +def boot_time(*args, **kwargs): ... |
| 56 | +def cpu_count_logical(*args, **kwargs): ... |
| 57 | +def cpu_stats(*args, **kwargs): ... |
| 58 | +def cpu_times(*args, **kwargs): ... |
| 59 | +def disk_io_counters(*args, **kwargs): ... |
| 60 | +def disk_partitions(*args, **kwargs): ... |
| 61 | +def net_connections(*args, **kwargs): ... |
| 62 | +def net_io_counters(*args, **kwargs): ... |
| 63 | +def per_cpu_times(*args, **kwargs): ... |
| 64 | +def pids(*args, **kwargs): ... |
| 65 | +def swap_mem(*args, **kwargs): ... |
| 66 | +def users(*args, **kwargs): ... |
| 67 | +def virtual_mem(*args, **kwargs): ... |
| 68 | +def cpu_freq(*args, **kwargs): ... # only FreeBSD and OpenBSD |
| 69 | +def cpu_topology(*args, **kwargs): ... # only FreeBSD |
| 70 | +def sensors_battery(*args, **kwargs): ... # only FreeBSD |
| 71 | +def sensors_cpu_temperature(*args, **kwargs): ... # only FreeBSD |
| 72 | +def check_pid_range(*args, **kwargs): ... |
| 73 | +def set_debug(*args, **kwargs): ... |
0 commit comments