Interview Questions : Linux Device Drivers and Linux Kernel

本文转载至:http://priyaranjan-technicalzone.blogspot.com/2014/01/interview-questions-embedded-system.html

1. Describe different bottom-halve techniques? State the differences between a tasklet and softirq?
2. How spinlock exactly works? Give an example with two threads or irqs.
3. How is a workque scheduled? Especially for a SMP system.
4. What is a threaded irq? Explain how a driver uses this.
5. What is memory barrier?
6. How would you allocate a huge memory like 1MB in kernel?
7. Difference between kmalloc and vmalloc.
8. Difference between Mutex and Spinlock.
9. Various techniques to debug a kernel panic.
10. Explain a basic character driver. E.g a keypad driver.
11. How would you solve a kernel hang or kernel crash? Explain some basic steps.
12. How would you measure performance issues in Kernel?
13. Explain sysfs/procfs. State the difference. Explain an usage.
14. Explain cache-coherency. How would you allocate a buffer to avoid a cache coherency for DMA.
15. How would you make a thread safe?
16. What happens in a system call? Please explain in detail.
17. Explain all variant of spinlocks for SMP system in detail.
18. How is a 'probe' gets called in platform driver? How to register a probe function?
19. What do you have in device tree? How to use them? Explain how a device tree node gets linked to a device driver.
20. How to register an ISR in device driver? Explain in detail how will you write an IRQ handler.
21. Can we have mutex or spinlock in ISR?
22. What leads to interrupt latency? How can we optimize the interrupt latency?
23. If I were to acquire a Mutex and Semaphone in a same function, which one would I do first?
24. Explain different functionality of a DMA.
25. What happens when Interrupt is delayed with spinlock held in the handler for long time?
26. What happens when linux boots?
27. What is significance of 'mknod' command?
28. When to use a workqueue in Linux kernel?
29. State how to use a Mutex and semaphone in code?
30. What is an event call back? How uevent is used in kernel?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值