✏️ 编辑:device_matcher.cpython-39.opt-1.pyc
路径:
/usr/lib/python3.9/site-packages/tuned/hardware/__pycache__/device_matcher.cpython-39.opt-1.pyc
大小:1.97 KB · 修改:2026-07-21 16:54:01 · 权限:0644 · 只读(保存会失败)
← 返回目录
👁 查看
⬇ 下载
检测到二进制内容,直接保存可能损坏文件。请改用「上传替换」。
a �]�i( � @ s* d dl Z d dlZdgZG dd� de�ZdS )� N� DeviceMatcherc @ s e Zd ZdZdd� Zdd� ZdS )r a, Device name matching against the devices specification in tuning profiles. The devices specification consists of multiple rules separated by spaces. The rules have a syntax of shell-style wildcards and are either positive or negative. The negative rules are prefixed with an exclamation mark. c s� t |t�rt�d|�}dd� |D �� � fdd�|D �}t� �dkrL� �d� d}� D ]}t�||�rTd} qnqT|D ]}t�||�rrd} q�qr|S ) a Match a device against the specification in the profile. If there is no positive rule in the specification, implicit rule which matches all devices is added. The device matches if and only if it matches some positive rule, but no negative rule. z\s|,\s*c S s&