SILENT KILLERPanel

Current Path: > > lib > python3.6 > site-packages > tuned > hardware


Operation   : Linux premium131.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
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //lib/python3.6/site-packages/tuned/hardware

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
__init__.py File 90 bytes February 22 2024 12:23:28.
device_matcher.py File 1576 bytes February 22 2024 12:23:28.
device_matcher_udev.py File 529 bytes February 22 2024 12:23:28.
inventory.py File 3891 bytes February 22 2024 12:23:28.

Reading File: //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

SILENT KILLER Tool