golden hour
/lib/python2.7/site-packages/tuned/plugins
⬆️ Go Up
Upload
File/Folder
Size
Actions
__init__.py
49 B
Del
OK
__init__.pyc
232 B
Del
OK
__init__.pyo
232 B
Del
OK
base.py
21.7 KB
Del
OK
base.pyc
24.43 KB
Del
OK
base.pyo
24.43 KB
Del
OK
decorators.py
983 B
Del
OK
decorators.pyc
1.52 KB
Del
OK
decorators.pyo
1.52 KB
Del
OK
exceptions.py
99 B
Del
OK
exceptions.pyc
460 B
Del
OK
exceptions.pyo
460 B
Del
OK
hotplug.py
2.97 KB
Del
OK
hotplug.pyc
4.09 KB
Del
OK
hotplug.pyo
4.09 KB
Del
OK
instance
-
Del
OK
plugin_audio.py
2.46 KB
Del
OK
plugin_audio.pyc
4.36 KB
Del
OK
plugin_audio.pyo
4.36 KB
Del
OK
plugin_bootloader.py
12.6 KB
Del
OK
plugin_bootloader.pyc
15.47 KB
Del
OK
plugin_bootloader.pyo
15.47 KB
Del
OK
plugin_cpu.py
12.95 KB
Del
OK
plugin_cpu.pyc
15.46 KB
Del
OK
plugin_cpu.pyo
15.42 KB
Del
OK
plugin_disk.py
13.77 KB
Del
OK
plugin_disk.pyc
16.92 KB
Del
OK
plugin_disk.pyo
16.92 KB
Del
OK
plugin_eeepc_she.py
2.04 KB
Del
OK
plugin_eeepc_she.pyc
3.3 KB
Del
OK
plugin_eeepc_she.pyo
3.3 KB
Del
OK
plugin_modules.py
3.8 KB
Del
OK
plugin_modules.pyc
5.64 KB
Del
OK
plugin_modules.pyo
5.64 KB
Del
OK
plugin_mounts.py
5.17 KB
Del
OK
plugin_mounts.pyc
6.36 KB
Del
OK
plugin_mounts.pyo
6.36 KB
Del
OK
plugin_net.py
14.02 KB
Del
OK
plugin_net.pyc
16.5 KB
Del
OK
plugin_net.pyo
16.5 KB
Del
OK
plugin_scheduler.py
23.2 KB
Del
OK
plugin_scheduler.pyc
25.28 KB
Del
OK
plugin_scheduler.pyo
25.28 KB
Del
OK
plugin_script.py
2.47 KB
Del
OK
plugin_script.pyc
3.77 KB
Del
OK
plugin_script.pyo
3.71 KB
Del
OK
plugin_scsi_host.py
2.59 KB
Del
OK
plugin_scsi_host.pyc
5.01 KB
Del
OK
plugin_scsi_host.pyo
5.01 KB
Del
OK
plugin_selinux.py
1.56 KB
Del
OK
plugin_selinux.pyc
2.96 KB
Del
OK
plugin_selinux.pyo
2.96 KB
Del
OK
plugin_sysctl.py
5.45 KB
Del
OK
plugin_sysctl.pyc
7.33 KB
Del
OK
plugin_sysctl.pyo
7.33 KB
Del
OK
plugin_sysfs.py
2.05 KB
Del
OK
plugin_sysfs.pyc
3.77 KB
Del
OK
plugin_sysfs.pyo
3.77 KB
Del
OK
plugin_systemd.py
4.82 KB
Del
OK
plugin_systemd.pyc
6.87 KB
Del
OK
plugin_systemd.pyo
6.87 KB
Del
OK
plugin_usb.py
1.49 KB
Del
OK
plugin_usb.pyc
3.06 KB
Del
OK
plugin_usb.pyo
3.06 KB
Del
OK
plugin_video.py
2.81 KB
Del
OK
plugin_video.pyc
4.2 KB
Del
OK
plugin_video.pyo
4.2 KB
Del
OK
plugin_vm.py
2.74 KB
Del
OK
plugin_vm.pyc
4.31 KB
Del
OK
plugin_vm.pyo
4.31 KB
Del
OK
repository.py
1.49 KB
Del
OK
repository.pyc
2.46 KB
Del
OK
repository.pyo
2.4 KB
Del
OK
Edit: hotplug.pyo
� ��\c @ sW d d l m Z d d l j Z d d l Z e j j � Z d e j f d � � YZ d S( i ( t basei����Nt Pluginc B sh e Z d Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( s: Base class for plugins with device hotpluging support. c O s t t | � j | | � d S( N( t superR t __init__( t selft argst kwargs( ( s9 /usr/lib/python2.7/site-packages/tuned/plugins/hotplug.pyR s c C s! t t | � j � | j � d S( N( R R t cleanupt _hardware_events_cleanup( R ( ( s9 /usr/lib/python2.7/site-packages/tuned/plugins/hotplug.pyR s c C s t � � d S( N( t NotImplementedError( R ( ( s9 /usr/lib/python2.7/site-packages/tuned/plugins/hotplug.pyt _hardware_events_init s c C s t � � d S( N( R ( R ( ( s9 /usr/lib/python2.7/site-packages/tuned/plugins/hotplug.pyR s c C s | j � d S( N( R ( R ( ( s9 /usr/lib/python2.7/site-packages/tuned/plugins/hotplug.pyt _init_devices s c C sd | d k r0 t j d | j � | j | � n0 | d k r` t j d | j � | j | � n d S( Nt adds device '%s' addedt removes device '%s' removed( t logt infot sys_namet _add_devicet _remove_device( R t eventt device( ( s9 /usr/lib/python2.7/site-packages/tuned/plugins/hotplug.pyt _hardware_events_callback s c C s | j } | | j | j Bk r# d Sx� t | j j � � D]� \ } } t | j | | g � � d k r9 t j d | | f � | j j | � | j | | j d | g � | j | | � | j | | j d | g � | j j | � Pq9 q9 Wt j d | � | j j | � d S( Ni s! instance %s: adding new device %st applys no instance wants %s( R t _assigned_devicest _free_devicest listt _instancest itemst lent _get_matching_devicesR R R t _call_device_scriptt script_pret _added_device_apply_tuningt script_postt processed_devicest debug( R R t device_namet instance_namet instance( ( s9 /usr/lib/python2.7/site-packages/tuned/plugins/hotplug.pyR $ s "!c C s� | j } | | j | j Bk r# d Sx� t | j j � � D]� } | | j k r9 | j | | j d | g � | j | | � | j | | j d | g � | j j | � t | j � t | j � d k | _ | j j | � Pq9 q9 W| j j | � d S( Nt unapplyi ( R R R R R t valuesR"