OXIESEC PANEL
- Current Dir:
/
/
lib
/
python3.9
/
site-packages
/
tuned
/
hardware
/
__pycache__
Server IP: 2a02:4780:11:1594:0:ef5:22d7:a
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/13/2025 09:25:13 PM
rwxr-xr-x
📄
__init__.cpython-39.opt-1.pyc
233 bytes
12/02/2024 09:49:29 AM
rw-r--r--
📄
__init__.cpython-39.pyc
233 bytes
12/02/2024 09:49:29 AM
rw-r--r--
📄
device_matcher.cpython-39.opt-1.pyc
1.97 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
device_matcher.cpython-39.pyc
1.97 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
device_matcher_udev.cpython-39.opt-1.pyc
875 bytes
12/02/2024 09:49:29 AM
rw-r--r--
📄
device_matcher_udev.cpython-39.pyc
875 bytes
12/02/2024 09:49:29 AM
rw-r--r--
📄
inventory.cpython-39.opt-1.pyc
4.43 KB
12/02/2024 09:49:29 AM
rw-r--r--
📄
inventory.cpython-39.pyc
4.43 KB
12/02/2024 09:49:29 AM
rw-r--r--
Editing: inventory.cpython-39.pyc
Close
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>