⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 udev.txt

📁 V4l driver for DVB HD
💻 TXT
字号:
The DVB subsystem currently registers to the sysfs subsystem using the"class_simple" interface.This means that only the basic informations like module loading parametersare presented through sysfs. Other things that might be interesting arecurrently *not* available.Nevertheless it's now possible to add proper udev rules so that theDVB device nodes are created automatically.We assume that you have udev already up and running and that have beencreating the DVB device nodes manually up to now due to the missing sysfssupport.0. Don't forget to disable your current method of creating thedevice nodes manually.1. Unfortunately, you'll need a helper script to transform the kernelsysfs device name into the well known dvb adapter / device naming scheme.The script should be called "dvb.sh" and should be placed into a scriptdir where udev can execute it, most likely /etc/udev/scripts/So, create a new file /etc/udev/scripts/dvb.sh and add the following:------------------------------schnipp------------------------------------------------#!/bin/sh/bin/echo $1 | /bin/sed -e 's,dvb\([0-9]\)\.\([^0-9]*\)\([0-9]\),dvb/adapter\1/\2\3,'------------------------------schnipp------------------------------------------------Don't forget to make the script executable with "chmod".1. You need to create a proper udev rule that will create the device nodeslike you know them. All real distributions out there scan the /etc/udev/rules.ddirectory for rule files. The main udev configuration file /etc/udev/udev.confwill tell you the directory where the rules are, most likely it's /etc/udev/rules.d/Create a new rule file in that directory called "dvb.rule" and add the following line:------------------------------schnipp------------------------------------------------KERNEL="dvb*", PROGRAM="/etc/udev/scripts/dvb.sh %k", NAME="%c"------------------------------schnipp------------------------------------------------If you want more control over the device nodes (for example a special group membership)have a look at "man udev".For every device that registers to the sysfs subsystem with a "dvb" prefix,the helper script /etc/udev/scripts/dvb.sh is invoked, which will thencreate the proper device node in your /dev/ directory.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -