Monday, August 11, 2014

[Solved] Linux Kernel Challenge : 001

Fancy your Linux Kernel Programming skills ? Take this challenge and answer these simple 5 questions related to Linux Kernel Programming.

Update : Added Solutions

  1. What is the latest mainline version of Linux Kernel [ as of 11-Aug-2014 ] ?
      • 3.16 : Ref : https://www.kernel.org/finger_banner

  2. What is the file extension of a Linux Kernel module ?
      • .ko

  3. Which Linux Kernel function corresponds to the insmod user function ?
      • module_init()

  4. Which kernel functions would use in your kernel module to allocate and free memory ?
      • kmalloc() : to allocate memory in kernel address space
      • kfree() : to free memory in kernel address space

  5. What does COW stand for w.r.t Linux Kernel ?
      • Copy On Write :
      • Its an efficient method of copying, where a resource of a page is shared without making a copy of it, until an attempt to write is made. Only then is a duplicate copy made, and all subsequent writes happen on the copy.

No comments:

Post a Comment