GRAYBYTE WORDPRESS FILE MANAGER6038

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /usr/lib/python3.6/site-packages/tuned/hardware/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


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

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 13 2025 08:41:26
root / root
0755
__pycache__
--
March 13 2025 08:41:26
root / root
0755
__init__.py
0.088 KB
February 22 2024 12:23:28
root / root
0644
device_matcher.py
1.539 KB
February 22 2024 12:23:28
root / root
0644
device_matcher_udev.py
0.517 KB
February 22 2024 12:23:28
root / root
0644
inventory.py
3.8 KB
February 22 2024 12:23:28
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF