📄 notes.txt
字号:
This is our TODO list, where you can see all pending issues:USB-Core communication layer for user level USB-daemon support:- USB Subsystem occupies 1 major device number- Communication via proc-filesystem-- Status reports and commands between the core and the daemon are piped through a virtual file Commands from daemon -> USB subsystem - dynamic assignment of minors- bandwidth allocation has to be moved to select_interface- automatic loading of device drivers through a list and daemon.-- friendly device names should be assigned (as a link?)-- device properties (name, load command) by automatically generated preferences list.-- drivers for unknown devices are selected by descriptor or manual.- Look for problems when connecting a hub with already connected devices(maybe also hub/uhci-related!)GA:Ideas for dynamic device allocation:Configuration File:Generic Vendor DevID Serial# IFs driver devname flagsGeneric: Audio, Mouse, Keyboard, HD, Printer all which can be determined byDeviceClass etc.Vendor: * | Hexcode | somewhere else defined aliasDevID: * | Hexcode Serial#: * | Hexcode IFs: * | Hexcode driver: module namedevname: name(n), first is taken if there are more than one matches, all others are named by the convention name_aXX (a to show automatic assignment), if name is without number, otherwise it should be numbered ascending.*flags: e.g. Parameter for modules, callable user program after connecting with parameters for device(s) $1-$9 and userID, exclusive: Devicename only to be allocated with this device m: access mode (octal) o: owner g: group Hexcode: single Hexcode, liste with ',', or range with '-' or list of ranges.Generic lines are located last in the file, specific single devices before.*) What happens if devicename is already assigned?Device names with numbers at the beginning of the list have to be omitted evenwhen counting up later.Example:#Generic Vendor DevID Serial# IFs driver devname flags#include "usb-vendors.h"# Flags to Control the daemon.flagsDefaultMode: 600DefaultOwner: rootDefaultGroup: rootModulePath: /lib/modules/$VERSION/usb# Preferences, to prevent devices from hobbing around# can be configured by a user tool.user* Anchor 9999 * 2 dabusb dab u="acher",start="acher:/usr/bin/dab $1"* Anchor * * * ezusb ezusb m=666* Philips 1035 * * usb-audio dsp4,mixer4 m=666,start="/usr/local/bin/mix -d $2"# Area for the daemon to store its connected devices to make sure# they are at the same place after next connect.historyUSB-Audio Philips 1035 0 0,1 usb-audio dsp2,mixer2 exclusive# General section, global definitions.genericUSB-Audio * * * * usb-audio dsp,mixer noneUSB-Mouse * * * * usb-mouse mouse noneUSB-Printer * * * * usb-printer lp none* Philips xxxx * * usb-ph-video video none
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -