| .. | |||||
| __init__.py | |||||
| __init__.pyc | |||||
| __init__.pyo | |||||
| device_matcher.py | |||||
| device_matcher.pyc | |||||
| device_matcher.pyo | |||||
| device_matcher_udev.py | |||||
| device_matcher_udev.pyc | |||||
| device_matcher_udev.pyo | |||||
| inventory.py | |||||
| inventory.pyc | |||||
| inventory.pyo |
| Server IP : 103.169.32.36 / Your IP : 216.73.216.202 Web Server : Apache System : Linux web.dpmptsp 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : apache ( 48) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python2.7/site-packages/tuned/hardware/ |
Upload File : |
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 list(items): properties += key + '=' + val + '\n' return re.search(regex, properties, re.MULTILINE) is not None
| .. | |||||
| __init__.py | |||||
| __init__.pyc | |||||
| __init__.pyo | |||||
| device_matcher.py | |||||
| device_matcher.pyc | |||||
| device_matcher.pyo | |||||
| device_matcher_udev.py | |||||
| device_matcher_udev.pyc | |||||
| device_matcher_udev.pyo | |||||
| inventory.py | |||||
| inventory.pyc | |||||
| inventory.pyo |