QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1000|回复: 7

设备驱动程序怎么知道打开哪个设备???

[复制链接]
发表于 2003-4-15 20:36:18 | 显示全部楼层 |阅读模式
设备驱动程序怎么知道打开哪个设备???
发表于 2003-4-15 21:57:23 | 显示全部楼层
there are many kinds of device under linux, u mean which one?
for example. a pci device driver will use pci vendor id, and sub sys id, to find the device. a chr dev or blk dev will register it as a chr or blk dev to system, which is linked into a list, then other code can access it.
u had better has a detail a question.
回复

使用道具 举报

发表于 2003-4-15 22:06:31 | 显示全部楼层
嗯, 按百字一元的收费, 写本书给你.  
回复

使用道具 举报

发表于 2003-4-15 22:16:21 | 显示全部楼层
hehe, u write a book, i will wait. but i am really poor now. i even do not have the money to pay my tuition fee for next year, can  u low the price?
回复

使用道具 举报

 楼主| 发表于 2003-4-16 16:09:22 | 显示全部楼层
是usb设备!!!
回复

使用道具 举报

发表于 2003-4-16 19:24:41 | 显示全部楼层
First, u must insure ur kernel know usb devices.
then u can access kernel by ioctl functions.
回复

使用道具 举报

 楼主| 发表于 2003-4-16 20:19:38 | 显示全部楼层
我的内核版本是2.4.18-15,rt8.0的。
回复

使用道具 举报

发表于 2003-4-16 21:56:43 | 显示全部楼层
if u really want to do serious usb kernel programming, read this http://usb.cs.tum.edu/usbdoc/
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-16 06:00 , Processed in 0.036734 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表