Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Linux kernel Programming Interview questions

What is meant by system call?
Systems calls run in Kernel mode on the user’s behalf and are provided by the kernel itself.
What is the command to install the module in Linux?     
What is the command to remove the module which are already installed
rmmod  ( remove-module ) is the command to remove the module which are already registered
What is a kernel Module?
Kernel Modules are bits and pieces of code that can be loaded and unloaded in to Kernel based on demand or user request. The idea is simple that the kernel size will be small and modules are added/removed without rebooting the kernel
What is the difference between programs and Kernel Modules?
A program is compiled and an executable version where it has the main () function and it perform the task and comes for the halt. In case of modules it has module_init()/module_exit() function and it just initialize the modules and the rest is taken care by kernel.
What is the difference between user space and kernel space?
What is meant by Major number and Minor number?
If kernel wants to know what type of driver it needs to use, then it has to see the Major Number. for instance if u have two floppy in the same PC, the two floppies will have the same major number and to differentiate between the two minor numbers are used, which will be used by the device driver. Hence Major numbers are being used by the kernel and the minor numbers are being used by the device drivers
What is the function used to register a device?
Can we uninstall the devices which are registered already?
What is the importance of  /proc File system ? 
What is the difference between system call and Library Call?
What is the disadvantage of making the kernel as monolithic?
What is the difference between printf() and printk() ?
Difference between Block and Character device drivers
How to distinguish various subsystems of Linux Kernel 




This post first appeared on All About Linux, please read the originial post: here

Share the post

Linux kernel Programming Interview questions

×

Subscribe to All About Linux

Get updates delivered right to your inbox!

Thank you for your subscription

×