XYZ File Manager
Current Path:
/lib/python3.9/site-packages/tuned/plugins
lib
/
python3.9
/
site-packages
/
tuned
/
plugins
/
📁
..
📄
__init__.py
(49 B)
📁
__pycache__
📄
base.py
(22.76 KB)
📄
decorators.py
(983 B)
📄
exceptions.py
(99 B)
📄
hotplug.py
(4.39 KB)
📁
instance
📄
plugin_acpi.py
(2.39 KB)
📄
plugin_audio.py
(3.16 KB)
📄
plugin_bootloader.py
(24.86 KB)
📄
plugin_cpu.py
(29.72 KB)
📄
plugin_disk.py
(16.75 KB)
📄
plugin_eeepc_she.py
(3 KB)
📄
plugin_irq.py
(9.73 KB)
📄
plugin_irqbalance.py
(3.54 KB)
📄
plugin_modules.py
(4.8 KB)
📄
plugin_mounts.py
(5.44 KB)
📄
plugin_net.py
(26.38 KB)
📄
plugin_rtentsk.py
(1.12 KB)
📄
plugin_scheduler.py
(58.5 KB)
📄
plugin_script.py
(3.91 KB)
📄
plugin_scsi_host.py
(3.08 KB)
📄
plugin_selinux.py
(2.26 KB)
📄
plugin_service.py
(10.45 KB)
📄
plugin_sysctl.py
(6.01 KB)
📄
plugin_sysfs.py
(2.63 KB)
📄
plugin_systemd.py
(5.32 KB)
📄
plugin_uncore.py
(5.97 KB)
📄
plugin_usb.py
(1.97 KB)
📄
plugin_video.py
(5.97 KB)
📄
plugin_vm.py
(8.01 KB)
📄
repository.py
(1.49 KB)
Editing: decorators.py
__all__ = ["command_set", "command_get", "command_custom"] # @command_set("scheduler", per_device=True) # def set_scheduler(self, value, device): # set_new_scheduler # # @command_get("scheduler") # def get_scheduler(self, device): # return current_scheduler # # @command_set("foo") # def set_foo(self, value): # set_new_foo # # @command_get("foo") # def get_foo(self): # return current_foo # def command_set(name, per_device=False, priority=0): def wrapper(method): method._command = { "set": True, "name": name, "per_device": per_device, "priority": priority, } return method return wrapper def command_get(name): def wrapper(method): method._command = { "get": True, "name": name, } return method return wrapper def command_custom(name, per_device=False, priority=0): def wrapper(method): method._command = { "custom": True, "name": name, "per_device": per_device, "priority": priority, } return method return wrapper
Upload File
Create Folder