Why do you use kmalloc to allocate memory inside the device driver ? What are the limitations of malloc inside kernel mode ?
Please send me the device driver interview questions with answers
Posts: 8,059
Threads: 1
Joined: Mar 2014
device drivers interview questions and answers
Here is a listing of Linux / Unix Technical Interview Questions & Answers for experienced IT professionals as well as fresh engineering graduates. These questions can be attempted by anyone focusing on Linux Development and Systems programming. If you liked any question, please endorse it by liking it or share it with your friends.
1. On x86-32 Linux, at which address the code segment of the program starts?
a) 0×00000000
b) 0×08048000
c) 0×80000000
d) 0xbfff0000
Answer:b
2. On x86-32 Linux, at which address the user stack resides normally?
a) 0×00000000
b) 0x3fff0000
c) 0x7fff0000
d) 0xbfff0000
Answer:d
3. A system has 512MB of physical memory. Which among the following is not a suitable virtual memory size for this system architecture?
a) 512MB
b) 256M
c) 4GB
d) None of the above
Answer:d
4. LRU stands for
a) Last received Unit
b) Least recently Used
c) Least recently usable
d) Lost Recoverd unit
Answer:b
5. Mm_struct maintains?
a) memory files
b) open files
c) pipe
d) active memory regions
Answer:d
6. Which sytem call can be used by a user process to lock a memory so that it cannot be swapped out?
Answer:memlock()
7. Is page table per process entity?
a) Yes
b) No
Answer:a
8. Among these files which has an ELF format
a) shared objects
b) core
c) executables
d) all of the above
Answer:d