massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / psutil / psutil / _pslinux.pyi
1 import enum
2 from typing import Any, NamedTuple
3
4 from ._common import (
5     NIC_DUPLEX_FULL as NIC_DUPLEX_FULL,
6     NIC_DUPLEX_HALF as NIC_DUPLEX_HALF,
7     NIC_DUPLEX_UNKNOWN as NIC_DUPLEX_UNKNOWN,
8     AccessDenied as AccessDenied,
9     NoSuchProcess as NoSuchProcess,
10     ZombieProcess as ZombieProcess,
11     isfile_strict as isfile_strict,
12     parse_environ_block as parse_environ_block,
13     path_exists_strict as path_exists_strict,
14     supports_ipv6 as supports_ipv6,
15     usage_percent as usage_percent,
16 )
17
18 __extra__all__: Any
19 POWER_SUPPLY_PATH: str
20 HAS_SMAPS: Any
21 HAS_PROC_IO_PRIORITY: Any
22 HAS_CPU_AFFINITY: Any
23 CLOCK_TICKS: Any
24 PAGESIZE: Any
25 BOOT_TIME: Any
26 BIGFILE_BUFFERING: Any
27 LITTLE_ENDIAN: Any
28 DISK_SECTOR_SIZE: int
29 AF_LINK: Any
30 AddressFamily: Any
31 IOPRIO_CLASS_NONE: int
32 IOPRIO_CLASS_RT: int
33 IOPRIO_CLASS_BE: int
34 IOPRIO_CLASS_IDLE: int
35
36 class IOPriority(enum.IntEnum):
37     IOPRIO_CLASS_NONE: int
38     IOPRIO_CLASS_RT: int
39     IOPRIO_CLASS_BE: int
40     IOPRIO_CLASS_IDLE: int
41
42 PROC_STATUSES: Any
43 TCP_STATUSES: Any
44
45 class svmem(NamedTuple):
46     total: Any
47     available: Any
48     percent: Any
49     used: Any
50     free: Any
51     active: Any
52     inactive: Any
53     buffers: Any
54     cached: Any
55     shared: Any
56     slab: Any
57
58 class sdiskio(NamedTuple):
59     read_count: Any
60     write_count: Any
61     read_bytes: Any
62     write_bytes: Any
63     read_time: Any
64     write_time: Any
65     read_merged_count: Any
66     write_merged_count: Any
67     busy_time: Any
68
69 class popenfile(NamedTuple):
70     path: Any
71     fd: Any
72     position: Any
73     mode: Any
74     flags: Any
75
76 class pmem(NamedTuple):
77     rss: Any
78     vms: Any
79     shared: Any
80     text: Any
81     lib: Any
82     data: Any
83     dirty: Any
84
85 pfullmem: Any
86
87 class pmmap_grouped(NamedTuple):
88     path: Any
89     rss: Any
90     size: Any
91     pss: Any
92     shared_clean: Any
93     shared_dirty: Any
94     private_clean: Any
95     private_dirty: Any
96     referenced: Any
97     anonymous: Any
98     swap: Any
99
100 pmmap_ext: Any
101
102 class pio(NamedTuple):
103     read_count: Any
104     write_count: Any
105     read_bytes: Any
106     write_bytes: Any
107     read_chars: Any
108     write_chars: Any
109
110 class pcputimes(NamedTuple):
111     user: Any
112     system: Any
113     children_user: Any
114     children_system: Any
115     iowait: Any
116
117 def readlink(path): ...
118 def file_flags_to_mode(flags): ...
119 def is_storage_device(name): ...
120 def set_scputimes_ntuple(procfs_path) -> None: ...
121 def cat(fname, fallback=..., binary: bool = ...): ...
122
123 scputimes: Any
124 prlimit: Any
125
126 def calculate_avail_vmem(mems): ...
127 def virtual_memory(): ...
128 def swap_memory(): ...
129 def cpu_times(): ...
130 def per_cpu_times(): ...
131 def cpu_count_logical(): ...
132 def cpu_count_physical(): ...
133 def cpu_stats(): ...
134 def cpu_freq(): ...
135
136 net_if_addrs: Any
137
138 class _Ipv6UnsupportedError(Exception): ...
139
140 class Connections:
141     tmap: Any
142     def __init__(self) -> None: ...
143     def get_proc_inodes(self, pid): ...
144     def get_all_inodes(self): ...
145     @staticmethod
146     def decode_address(addr, family): ...
147     @staticmethod
148     def process_inet(file, family, type_, inodes, filter_pid: Any | None = ...) -> None: ...
149     @staticmethod
150     def process_unix(file, family, inodes, filter_pid: Any | None = ...) -> None: ...
151     def retrieve(self, kind, pid: Any | None = ...): ...
152
153 def net_connections(kind: str = ...): ...
154 def net_io_counters(): ...
155 def net_if_stats(): ...
156
157 disk_usage: Any
158
159 def disk_io_counters(perdisk: bool = ...): ...
160 def disk_partitions(all: bool = ...): ...
161 def sensors_temperatures(): ...
162 def sensors_fans(): ...
163 def sensors_battery(): ...
164 def users(): ...
165 def boot_time(): ...
166 def pids(): ...
167 def pid_exists(pid): ...
168 def ppid_map(): ...
169 def wrap_exceptions(fun): ...
170
171 class Process:
172     pid: Any
173     def __init__(self, pid) -> None: ...
174     def oneshot_enter(self) -> None: ...
175     def oneshot_exit(self) -> None: ...
176     def name(self): ...
177     def exe(self): ...
178     def cmdline(self): ...
179     def environ(self): ...
180     def terminal(self): ...
181     def io_counters(self): ...
182     def cpu_times(self): ...
183     def cpu_num(self): ...
184     def wait(self, timeout: Any | None = ...): ...
185     def create_time(self): ...
186     def memory_info(self): ...
187     def memory_full_info(self, _private_re=..., _pss_re=..., _swap_re=...): ...
188     def memory_maps(self): ...
189     def cwd(self): ...
190     def num_ctx_switches(self, _ctxsw_re=...): ...
191     def num_threads(self, _num_threads_re=...): ...
192     def threads(self): ...
193     def nice_get(self): ...
194     def nice_set(self, value): ...
195     def cpu_affinity_get(self): ...
196     def cpu_affinity_set(self, cpus) -> None: ...
197     def ionice_get(self): ...
198     def ionice_set(self, ioclass, value): ...
199     def rlimit(self, resource_, limits: Any | None = ...): ...
200     def status(self): ...
201     def open_files(self): ...
202     def connections(self, kind: str = ...): ...
203     def num_fds(self): ...
204     def ppid(self): ...
205     def uids(self, _uids_re=...): ...
206     def gids(self, _gids_re=...): ...