Interview Questions

LDD - General

Linux Device Driver - Interview Questions

LDD - General Questions

Linux General Interview Questions

  • Unix script to find the specific string from the given file?
  • How would you debug kernel code.?
  • How we can modify the default behaviour of setsockopt() parameters.?
  • Describe the steps to add a new global sysctl() or fnctl() paramater. How can make Mutex global to All CPUs in your Board? Because spinlock is global to all CPUs in SMP system. Just make Mutex work like spinlock?
  • What happens when function1 calls function2 with it.(like where does the linkage register stuff get stored.. and resume execution)
  • Differance between macro & micro Kernel.
  • what you observed difference between QNX & Linux
  • What part of kernel driver worked. Explain
  • Why driver code in not written in C++/Java
  • Run Time optimization
  • How to define the process of QNX/Arch delivery integration
  • Details of performance related optimisation?
  • How you Evaluate the Driver
  • How to handle situation when a program is too large for code space? (edit linker file)
  • What is big endian and little endian? implement a function changes the endians
  • scheduler in linux
  • Explain about file system in linux kernel and how a kernel handles any file when it was created.
  • what is file descriptor and what informtion it contains in file descriptor
  • How do u see system messages and how do find the issues in system by reading the proc file system or dmsg queues or sysfs information.
  • what all kind of info is present in procfs.
  • Deadlock – example
  • In a Process Address Space what if stack or heap collide?
  • Advantages and disadvantages of Polling & Interrupt drivers.
  • What are the different modes in ARM.
  • Behavior of system call from user level to kernel level.
  • how to synchronize devices which operates at different frequencies
  • What is kernel thread?
  • what is pthread?
  • How to give memory of 250Mb to kernel (high zone memory)
  • what all Debugging techniques you
  • What is an re-entrant function?
  • Overall knowledge of kernel building knowledge.
  • basics of board support package
  • How can you rate yourself in KERNEL?
  • System call flow?
  • Points you will inquiry when a driver from one platform to be ported to another platform?
  • How do you pass data between kernel modules?
  • What are different embedded design patters?
  • Explain about any Device Driver project your good at?
  • Comfort level in Assembly level language?
  • What are the kernel structures and which kernel structure used in device driver development?
  • What is interrupt nesting, How IRQ priority handled?
  • What is SERDES?
  • What is Partition on DO-178B document?
  • What is Real time system
  • How the data integrity check is done in case of network packets or I2c driver communication?
  • Have you checked linux lib code
  • How to debug kernel code
  • What is x86 and what are the registers used
  • How to write a makefile to build a customized kernel
  • More questions on debug and crash point related
  • What is Dead code and Deactivated code and diff b/w them?
  • Level of software as per DO-178B?
  • Memory allocation using Kmalloc with FLAGS?
  • How to create buffers in Kernel?
  • What is the difference b/w kmalloc and vmalloc
  • How to build the vmlinux image
  • How to speed up the memcpy, have you seen memcpy code in kernel ?
  • Power Management Techniques - Experience.
  • What is preemption? Do we need preemption for multitasking? In fedora, preemption has been disabled, then how it is doing multitasking?
  • What is preemption? Do we need preemption for multitasking? In fedora, preemption has been disabled, then how it is doing multitasking?
  • How can we disable the preemption in the kernel?
  • Where the PCB of the current running process is located?
  • How the kernel refers the PCB of the current running process?
  • What is the use of strace command?


If you have any queries please email us at info@motionzen.com