现在的位置: 首页 > 综合 > 正文

Interview Questions : Linux Device Drivers and Linux Kernel

2017年03月13日 ⁄ 综合 ⁄ 共 1681字 ⁄ 字号 评论关闭

本文转载至: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 workque 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?

抱歉!评论已关闭.