Linux Device Driver and Linux Kernel Interview Questions

Linux device driver & Linux Kernel interview questions
Linux device driver interview questions , Linux kernel development interview questions, Embedded software development interview questions, OS development interview questions , RTOS development interview questions all of these are grouped together under a single roof.
This article list out almost all variety of linux device driver interview questions.These LDD questions covers almost all the questions can be asked for the skills of Linux device driver, Linux kernel development, OS development,embedded software development etc. This article also contains linux kernel interview questions which covers almost all the linux kernel module wise questions.
So if you are going for the interview or preparing for the interview for the any of above skills then have a quick view or quick revision on below questions.
Process management:-
1) how to manipulate the current process.
3) how threads are implemented in linux kernel.
4) What are different state of a process in lunix.
5) what is difference between process and thread.
6) generally what resources are shared between threads.
9) what is therad_info structure for.
10) what was the need of thread_info structure.
11) difference betwen fork() and vfork()
14) how parent less process is handles in linux.
Process Scheduling:-
2) what is cooperative multitasking and pre-emptive multitasking.
4) what is limitation of cooperative multitasking.
5) I/O bound versus Processor bound process.
7) What kind of priority is maintained in linux.
10) what are the available scheduling classes in linux.
11) which type os scheduling used in linux.
12) how next task is picked for scheduling.
13) what is scheduler entry point in linux.
15) How context switching is handled in linux.
16) what is user preemption and kernel preemption
Syscalls:-
2) how system calls are implemented in linux.
3) what happens when process in userspace calls a syscall.
4) what is the need of verifying parameter in definition of syscall.
5) what is system calls context.
6) why it is not recommended to writing new syscall.
Interrupts and interrupt handlers:-
2) what is interrupt handler or ISR.
3) what is top halves and bottom halves.
4) How interrupt is registered.
5) what are different interrupt handler flags.
7) what are the considerations needs to taken care while writing interrupt handler.
10) how to disable and enable interrupts.
11) what are different bottom halves techniques in linux.
12) what is tasklets , softirq and workqueus and difference among them.
13) when to choose which bottom halves.
14) how to implements softirq , tasklets and workwues.
17) How to disable bottom halves.
18) How locking between bottomhalves handled.
Kernel Synchronization:-
4) why we need to take care of synchronization
5) what is various synchronization techniques in linux.
9) what is reader-writer spin lock.
12) what is difference between semaphore and spin lock.
13) when to choose what among spin lock and semaphore.
14) what is difference between semaphore and mutex.
15) what is preemption disabling and what is the use of this.
Kernel timers
1) what is tick rate and jiffies.
2) what are the various way of applying delay in linux.
3) what is blocking and non blocking call
4) what is Real time clock (RTC).
5) how busy looping is implemented in linux.
Memory management
1) how memory is managed in linux.
3) what are different memory zones in linux.
6) what us kmalloc and what are action modifier we can pass while using kmalloc.
7) what is zone modifier in linux.
Virtual file system:-
1) what is virtual file system and what is the need of it in linux.
2) are are different object types in VFS.
3) what are the operations possible on inode and superblock objects.
Process Address Space:-
1) what is process address space.
2) what is memory descriptor in linux and which structure represents it.
3) how to allocate and destroy a memory descriptor
4) does kernel thread has any association with mm_struct.
5) what is VMA and what are various VMA operations possible in linux kernel.
6) how to manipulate memory area in linux.
Device driver questions:-
1) What is device driver and what is the need of it.
2) what are different kind of devices.
4) how mudules are loaded in linux.
5) difference between insmod and modprobe.
6) how parameters are shared between driver modules.
9) what are the benefits of syscalls.
10) how character driver is registered in linux.
11) what is init and exit function of a driver.
12) how and when init and exit function of driver get called.
17) what are the benefits of device tree over board files.
19) how logs are printed in linux kernel and what are the logs level available in linux.
20) what is copy_to_user and copy_from_user.
21) what do you mean by kernel configuration and what are the various way of configuring kernel.
24) what is seagmentation fault.
25) what are the various ways od debugging linux kernel.
27) what is zimage and bzimage.
28) what are different booting arguments in linux.
29) how parameter are passed from boot loader to kernel.
31) from which file kernel execution starts.
33) what is primary and secondary bootloader.
34) why we need two bootloader.
35) difference between poll and select.
36) what is priority inheritance and priority inversion.
37) what are different type of kernel.
41) what is highmem and lowmem.
42) what happens if we pass invalid address from userspace by using ioctls.
43) what are different ipc mechanism in linux.
45) how page fault is handled in linux.
46) difference between memory based io and port based io.
48) how physical to virtual translations works in linux.
49) what is thrashing, segmentation and fragmentation.
50) what is preempt_count and what is the need of that.
This course list out almost all variety of linux device driver interview questions.These LDD questions covers almost all the questions can be asked for the skills of Linux device driver, Linux kernel development, OS development,embedded software development etc. This article also contains linux kernel interview questions which covers almost all the linux kernel module wise questions.
So if you are going for the interview or preparing for the interview for the any of above skills then have a quick view or quick revision on these questions. Below is list of some of the questions
Process management:-
1) how to manipulate the current process.
3) how threads are implemented in linux kernel.
4) What are different state of a process in lunix.
5) what is difference between process and thread.
6) generally what resources are shared between threads.
9) what is therad_info structure for.
10) what was the need of thread_info structure.
11) difference betwen fork() and vfork()
14) how parent less process is handles in linux.
Process Scheduling:-
2) what is cooperative multitasking and pre-emptive multitasking.
4) what is limitation of cooperative multitasking.
5) I/O bound versus Processor bound process.
7) What kind of priority is maintained in linux.
10) what are the available scheduling classes in linux.
11) which type os scheduling used in linux.
12) how next task is picked for scheduling.
13) what is scheduler entry point in linux.
15) How context switching is handled in linux.
16) what is user preemption and kernel preemption
Syscalls:-
2) how system calls are implemented in linux.
3) what happens when process in userspace calls a syscall.
4) what is the need of verifying parameter in definition of syscall.
5) what is system calls context.
6) why it is not recommended to writing new syscall.
Device Driver interview Question
1) What is device driver and what is the need of it.
2) what are different kind of devices.
4) how mudules are loaded in linux.
5) difference between insmod and modprobe.
6) how parameters are shared between driver modules.
9) what are the benefits of syscalls.
10) how character driver is registered in linux.
11) what is init and exit function of a driver.
12) how and when init and exit function of driver get called.
Course Features
- Lectures 1
- Quizzes 0
- Duration 4 hr
- Skill level All levels
- Language English
- Students 21
- Assessments Self
-
Linux Device Driver & Linux Kernel Interview Questions
Let's Prepare for the interview with tutorialsdaddy