Interview Questions : Linux Device Drivers and Linux Kernel
2015-01-20 21:46
519 查看
本文转载至: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?
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?
相关文章推荐
- 《Understanding the Linux kernel》学习笔记 Chapter 13: I/O Architecture and Device Drivers
- Linux Kernel Threads in Device Drivers
- Linux Device Drivers 3rd Edition Building and Running
- Beginning Linux Programming----System Calls and Device Drivers
- Linux Device Drivers 3rd Edition Concurrency and Race Conditions
- Linux Kernel architecture for device drivers
- Linux Kernel Threads in Device Drivers
- Linux Kernel Threads in Device Drivers
- Linux Device Drivers 3rd Edition Time Delays and Deferred Work
- Linux Kernel Threads in Device Drivers
- Quick Reference for Linux Device Drivers Development (kernel 2.6.15)
- Linux Device Drivers 3rd Edition Data Types in the Kernel
- Linux Device Drivers 3rd Edition Memory Mapping and DMA
- Linux Device Drivers 3rd Edition An Introduction to
- Linux Device Drivers 3rd Edition PCI Drivers
- Linux Device Drivers(设备驱动程序)_转自老刘的blog
- Linux Device Drivers 3rd Edition Network Drivers
- Linux Device Drivers 2nd Edition Notes
- Linux Device Drivers 3rd Edition USB Drivers
- Linux Device Drivers 3rd Edition Communicating with Hardware