File: //usr/local/CyberCP/lib64/python3.10/site-packages/psutil/__pycache__/_psaix.cpython-310.pyc
o
�hLG � @ s� d Z ddlZddlZddlZddlZddlZddlZddlmZ ddl m
Z
ddl mZ ddl mZ
ddl mZ dd l
mZ dd
l
mZ ddl
mZ ddl
mZ dd
l
mZ ddl
mZ ddl
mZ ddl
mZ ddl
mZ ddl
mZ dgZee
d�Zee
d�Zee
d�Ze�� Z ej!Z!e
j"e
j#e
j$e
j%e
j&e
j'e
j(e
j'e
j)e
j*iZ+e
j,e
j-e
j.e
j/e
j0e
j1e
j2e
j3e
j4e
j5e
j6e
j7e
j8e
j9e
j:e
j;e
j<e
j=e
j>e
j?e
j@e
jAe
jBe
jCiZDeEddddddddd�ZFeddd g�ZGeGZHed!g d"��ZIed#g d$��ZJd%d&� ZKd'd(� ZLd)d*� ZMd+d,� ZNd-d.� ZOd/d0� ZPd1d2� ZQe
jRZRejSZSdGd4d5�ZTejUZUe�r(e
jVZVdHd7d8�ZWd9d:� ZXd;d<� ZYd=d>� ZZd?d@� Z[dAdB� Z\dCdD� Z]G dEdF� dF�Z^dS )IzAIX platform implementation.� N)�
namedtuple� )�_common)�_psposix)�_psutil_aix)�
_psutil_posix)�NIC_DUPLEX_FULL)�NIC_DUPLEX_HALF)�NIC_DUPLEX_UNKNOWN)�AccessDenied)�
NoSuchProcess)�
ZombieProcess)�conn_to_ntuple)�get_procfs_path)�memoize_when_activated)�
usage_percent�PROCFS_PATH�proc_threads�net_io_counters�proc_io_counters� � � � � � )�ppid�rss�vms�create_time�nice�num_threads�status�ttynr�pmemr r � scputimes)�user�system�idle�iowait�svmem)�total� available�percent�used�freec C s4 t �� \} }}}}t| | | dd�}t| ||||�S )Nr ��round_)�cext�virtual_memr r* )r+ �availr/ �_pinned�inuser- � r7 �@/usr/local/CyberCP/lib/python3.10/site-packages/psutil/_psaix.py�virtual_memoryg s r9 c C s: t �� \} }}}| | }t|| dd�}t�| |||||�S )z=Swap system memory as a (total, used, free, sin, sout) tuple.r r0 )r2 �swap_memr r �sswap)r+ r/ �sin�soutr. r- r7 r7 r8 �swap_memorym s r>