id match
PCI或者USB驱动中的id干吗用的?怎么用呀? 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) 好像不是吧? 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 客气了!不过看来是我没有把问题说清楚。
我是想说id_table。现在有点儿概念了,好像是存贮产品信息以决定驱动模块的加载。
但是使用起来好像还是不太顺……
页:
[1]