Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/tuned/hardware/__pycache__/ |
Upload File : |
a ,�g � @ s0 d dl mZ ddlZdgZG dd� dej�ZdS )� )�device_matcher� N�DeviceMatcherUdevc @ s e Zd Zdd� ZdS )r c C sl d}z|j �� }W n ty, |�� }Y n0 tt|��D ]\}}||d | d 7 }q:t�||tj�duS )zc Match a device against the udev regex in tuning profiles. device is a pyudev.Device object � �=� N)� properties�items�AttributeError�sorted�list�re�search� MULTILINE)�selfZregexZdevicer r �key�val� r �F/usr/lib/python3.9/site-packages/tuned/hardware/device_matcher_udev.py�match s zDeviceMatcherUdev.matchN)�__name__� __module__�__qualname__r r r r r r s )r r r �__all__Z DeviceMatcherr r r r r �<module> s