QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 994|回复: 4

id match

[复制链接]
发表于 2004-5-7 10:04:13 | 显示全部楼层 |阅读模式
PCI或者USB驱动中的id干吗用的?怎么用呀?
发表于 2004-5-9 23:29:02 | 显示全部楼层
it is used on the time many devices share a single interrupt line.  Without this,  kernel can't invoke the proper interrupt handler. (it vokes, but maybe not the correct one)
回复

使用道具 举报

 楼主| 发表于 2004-5-10 22:00:06 | 显示全部楼层
好像不是吧?
回复

使用道具 举报

发表于 2004-5-10 23:36:46 | 显示全部楼层
ha ..., Yes, you are right,

I made misunderstanding about the order of the invoking by kernel

the book says :

dev_id (which used to store device id) is used primarily for shared interrupt  lines.  
When an interrupt handler is freed, dev_id provides a unique cookie to allow the
removal of only the desired interrupt handler from the interrupt line.  

Without this, it would be impossible for the kernel to know which handler to remove
on a given interrupt line.

sorry for my misunderstanding ...
回复

使用道具 举报

 楼主| 发表于 2004-5-11 11:49:28 | 显示全部楼层
客气了!不过看来是我没有把问题说清楚。

我是想说id_table。现在有点儿概念了,好像是存贮产品信息以决定驱动模块的加载。

但是使用起来好像还是不太顺……
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-16 08:38 , Processed in 0.036641 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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