[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.19
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
usr
/
lib
/
python3.6
/
site-packages
/
tuned
/
plugins
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 __pycache__
SET
[ DEL ]
📁 instance
SET
[ DEL ]
📄 __init__.py
49 B
SET
[ EDIT ]
|
[ DEL ]
📄 base.py
22,417 B
SET
[ EDIT ]
|
[ DEL ]
📄 decorators.py
983 B
SET
[ EDIT ]
|
[ DEL ]
📄 exceptions.py
99 B
SET
[ EDIT ]
|
[ DEL ]
📄 hotplug.py
3,928 B
SET
[ EDIT ]
|
[ DEL ]
📄 plugin_acpi.py
2,446 B
SET
[ EDIT ]
|
[ DEL ]
📄 plugin_audio.py
3,209 B
SET
[ EDIT ]
|
[ DEL ]
📄 plugin_bootloader.py
25,914 B
SET
[ EDIT ]
|
[ DEL ]
📄 plugin_cpu.py
28,218 B
SET
[ EDIT ]
|
[ DEL ]
📄 plugin_disk.py
17,049 B
SET
[ EDIT ]
|
[ DEL ]
📄 plugin_eeepc_she.py
2,947 B
SET
[ EDIT ]
|
[ DEL ]
📄 plugin_irqbalance.py
3,554 B
SET
[ EDIT ]
|
[ DEL ]
📄 plugin_modules.py
4,925 B
SET
[ EDIT ]
|
[ DEL ]
📄 plugin_mounts.py
5,580 B
SET
[ EDIT ]
|
[ DEL ]
📄 plugin_net.py
23,252 B
SET
[ EDIT ]
|
[ DEL ]
📄 plugin_rtentsk.py
1,109 B
SET
[ EDIT ]
|
[ DEL ]
📄 plugin_scheduler.py
56,255 B
SET
[ EDIT ]
|
[ DEL ]
📄 plugin_script.py
3,852 B
SET
[ EDIT ]
|
[ DEL ]
📄 plugin_scsi_host.py
3,153 B
SET
[ EDIT ]
|
[ DEL ]
📄 plugin_selinux.py
2,320 B
SET
[ EDIT ]
|
[ DEL ]
📄 plugin_service.py
10,721 B
SET
[ EDIT ]
|
[ DEL ]
📄 plugin_sysctl.py
6,906 B
SET
[ EDIT ]
|
[ DEL ]
📄 plugin_sysfs.py
2,694 B
SET
[ EDIT ]
|
[ DEL ]
📄 plugin_systemd.py
5,428 B
SET
[ EDIT ]
|
[ DEL ]
📄 plugin_uncore.py
4,723 B
SET
[ EDIT ]
|
[ DEL ]
📄 plugin_usb.py
2,015 B
SET
[ EDIT ]
|
[ DEL ]
📄 plugin_video.py
3,807 B
SET
[ EDIT ]
|
[ DEL ]
📄 plugin_vm.py
3,561 B
SET
[ EDIT ]
|
[ DEL ]
📄 repository.py
1,530 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: repository.py
from tuned.utils.plugin_loader import PluginLoader import tuned.plugins.base import tuned.logs log = tuned.logs.get() __all__ = ["Repository"] class Repository(PluginLoader): def __init__(self, monitor_repository, storage_factory, hardware_inventory, device_matcher, device_matcher_udev, plugin_instance_factory, global_cfg, variables): super(Repository, self).__init__() self._plugins = set() self._monitor_repository = monitor_repository self._storage_factory = storage_factory self._hardware_inventory = hardware_inventory self._device_matcher = device_matcher self._device_matcher_udev = device_matcher_udev self._plugin_instance_factory = plugin_instance_factory self._global_cfg = global_cfg self._variables = variables @property def plugins(self): return self._plugins def _set_loader_parameters(self): self._namespace = "tuned.plugins" self._prefix = "plugin_" self._interface = tuned.plugins.base.Plugin def create(self, plugin_name): log.debug("creating plugin %s" % plugin_name) plugin_cls = self.load_plugin(plugin_name) plugin_instance = plugin_cls(self._monitor_repository, self._storage_factory, self._hardware_inventory, self._device_matcher,\ self._device_matcher_udev, self._plugin_instance_factory, self._global_cfg, self._variables) self._plugins.add(plugin_instance) return plugin_instance def delete(self, plugin): assert isinstance(plugin, self._interface) log.debug("removing plugin %s" % plugin) plugin.cleanup() self._plugins.remove(plugin)