$28 GRAYBYTE WORDPRESS FILE MANAGER $60

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/usr/lib/python3.6/site-packages/tuned/hardware/

HOME
Current File : /usr/lib/python3.6/site-packages/tuned/hardware//device_matcher_udev.py
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


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
13 Mar 2025 8.42 AM
root / root
0755
__pycache__
--
13 Mar 2025 8.42 AM
root / root
0755
__init__.py
0.088 KB
22 Feb 2024 12.23 PM
root / root
0644
device_matcher.py
1.539 KB
22 Feb 2024 12.23 PM
root / root
0644
device_matcher_udev.py
0.517 KB
22 Feb 2024 12.23 PM
root / root
0644
inventory.py
3.8 KB
22 Feb 2024 12.23 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF