Server IP : 149.255.58.128 / Your IP : 216.73.216.147
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /usr/lib/python3.9/site-packages/tuned/hardware/__pycache__//inventory.cpython-39.pyc
a
�Գf � @ sP d dl Z d dlZd dlmZ dgZej�� ZG dd� de�Z G dd� de�Z
dS )� N)�consts� Inventoryc @ s\ e Zd ZdZddd�Zdd� Zdd � Zd
d� Zdd
� Zdd� Z dd� Z
dd� Zddd�ZdS )r z�
Inventory object can handle information about available hardware devices. It also informs the plugins
about related hardware events.
NTc C s� |d ur|| _ n
t�� | _ |d u r(tj}|�| j �| _|d u rDtj}|rvz| j�|� W n t yt t
�d� Y n0 |d u r�t� }|| _
d | _i | _d S )Nz�cannot set udev monitor receive buffer size, we are probably running inside container or with limited capabilites, TuneD functionality may be limited)�
_udev_context�pyudevZContextZMonitorZfrom_netlink�
_udev_monitorr ZCFG_DEF_UDEV_BUFFER_SIZE�set_receive_buffer_size�EnvironmentError�logZwarning�_MonitorObserverFactory�_monitor_observer_factory�_monitor_observer�_subscriptions)�selfZudev_contextZudev_monitor_clsZmonitor_observer_factoryZbuffer_sizer � r �</usr/lib/python3.9/site-packages/tuned/hardware/inventory.py�__init__ s$
zInventory.__init__c C s>