超级用户 发表于 2004-5-7 10:04:13

id match

PCI或者USB驱动中的id干吗用的?怎么用呀?

rhyno 发表于 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

好像不是吧?

rhyno 发表于 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 interruptlines.
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 ... :P

超级用户 发表于 2004-5-11 11:49:28

客气了!不过看来是我没有把问题说清楚。

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

但是使用起来好像还是不太顺……
页: [1]
查看完整版本: id match