- 論壇徽章:
- 13
|
arch/i386/kernel/irq.c, line 662~705:- int request_irq(unsigned int irq,
- void (*handler)(int, void *, struct pt_regs *),
- unsigned long irqflags,
- const char * devname,
- void *dev_id)
- {
- ...
- if (irqflags & SA_SHIRQ) {
- if (!dev_id)
- printk("Bad boy: %s (at 0x%x) called us without a dev_id!\n", devname, (&irq)[-1]);
- }
- ...
- }
復(fù)制代碼 hi~ 關(guān)于(&irq)[-1],我的疑問是這樣:
1. 某些優(yōu)化級(jí)別,部分參數(shù)通過寄存器傳遞
2. 函數(shù)有不同的調(diào)用約定:
http://blog.csdn.net/jia_xiaoxin/article/details/2868216
這里沒有考慮這些,直接就認(rèn)為第一個(gè)參數(shù)前面就是caller的地址了。 |
|