| __pycache__ | |||
| __init__.py | |||
| device_matcher.py | |||
| device_matcher_udev.py | |||
| inventory.py |
|
Server : LiteSpeed System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64 User : alloknri ( 880) PHP Version : 8.1.34 Disable Function : NONE Directory : /lib/python3.6/site-packages/tuned/hardware/ |
from . import device_matcher import re __all__ = ["DeviceMatcherUdev"] class DeviceMatcherUdev(device_matcher.DeviceMatcher): def match(self, regex, device): """ Match a device against the udev regex in tuning profiles. device is a pyudev.Device object """ properties = '' try: items = device.properties.items() except AttributeError: items = device.items() for key, val in sorted(list(items)): properties += key + '=' + val + '\n' return re.search(regex, properties, re.MULTILINE) is not None
| __pycache__ | |||
| __init__.py | |||
| device_matcher.py | |||
| device_matcher_udev.py | |||
| inventory.py |