$31 GRAYBYTE WORDPRESS FILE MANAGER $22

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/usr/lib/python3.6/site-packages/tuned/profiles/functions/

HOME
Current File : /usr/lib/python3.6/site-packages/tuned/profiles/functions//repository.py
from tuned.utils.plugin_loader import PluginLoader
from . import base
import tuned.logs
import tuned.consts as consts
from tuned.utils.commands import commands

log = tuned.logs.get()

class Repository(PluginLoader):

	def __init__(self):
		super(Repository, self).__init__()
		self._functions = {}

	@property
	def functions(self):
		return self._functions

	def _set_loader_parameters(self):
		self._namespace = "tuned.profiles.functions"
		self._prefix = consts.FUNCTION_PREFIX
		self._interface = tuned.profiles.functions.base.Function

	def create(self, function_name):
		log.debug("creating function %s" % function_name)
		function_cls = self.load_plugin(function_name)
		function_instance = function_cls()
		self._functions[function_name] = function_instance
		return function_instance

	# loads function from plugin file and return it
	# if it is already loaded, just return it, it is not loaded again
	def load_func(self, function_name):
		if not function_name in self._functions:
			return self.create(function_name)
		return self._functions[function_name]

	def delete(self, function):
		assert isinstance(function, self._interface)
		log.debug("removing function %s" % function)
		for k, v in list(self._functions.items()):
			if v == function:
				del self._functions[k]

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
14 Aug 2025 9.25 PM
root / root
0755
__pycache__
--
14 Aug 2025 9.25 PM
root / root
0755
__init__.py
0.034 KB
22 Feb 2024 7.23 PM
root / root
0644
base.py
1.016 KB
22 Feb 2024 7.23 PM
root / root
0644
function_assertion.py
0.749 KB
22 Feb 2024 7.23 PM
root / root
0644
function_assertion_non_equal.py
0.792 KB
22 Feb 2024 7.23 PM
root / root
0644
function_calc_isolated_cores.py
1.604 KB
22 Feb 2024 7.23 PM
root / root
0644
function_check_net_queue_count.py
0.635 KB
22 Feb 2024 7.23 PM
root / root
0644
function_cpuinfo_check.py
0.987 KB
22 Feb 2024 7.23 PM
root / root
0644
function_cpulist2devs.py
0.449 KB
22 Feb 2024 7.23 PM
root / root
0644
function_cpulist2hex.py
0.459 KB
22 Feb 2024 7.23 PM
root / root
0644
function_cpulist2hex_invert.py
0.609 KB
22 Feb 2024 7.23 PM
root / root
0644
function_cpulist_invert.py
0.644 KB
22 Feb 2024 7.23 PM
root / root
0644
function_cpulist_online.py
0.636 KB
22 Feb 2024 7.23 PM
root / root
0644
function_cpulist_pack.py
0.622 KB
22 Feb 2024 7.23 PM
root / root
0644
function_cpulist_present.py
0.675 KB
22 Feb 2024 7.23 PM
root / root
0644
function_cpulist_unpack.py
0.499 KB
22 Feb 2024 7.23 PM
root / root
0644
function_exec.py
0.476 KB
22 Feb 2024 7.23 PM
root / root
0644
function_hex2cpulist.py
0.461 KB
22 Feb 2024 7.23 PM
root / root
0644
function_kb2s.py
0.396 KB
22 Feb 2024 7.23 PM
root / root
0644
function_regex_search_ternary.py
0.541 KB
22 Feb 2024 7.23 PM
root / root
0644
function_s2kb.py
0.407 KB
22 Feb 2024 7.23 PM
root / root
0644
function_strip.py
0.396 KB
22 Feb 2024 7.23 PM
root / root
0644
function_virt_check.py
0.581 KB
22 Feb 2024 7.23 PM
root / root
0644
functions.py
2.096 KB
22 Feb 2024 7.23 PM
root / root
0644
repository.py
1.254 KB
22 Feb 2024 7.23 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF