9. AssignmentsΒΆ

Following are few examples which will enable you in understanding the kernel modules and the flow better. The examples in the booklet can be used to understand the overall flow of the code. Try to code the solutions without any help.

In case you want to add more assignments, please feel free to send a merge request along with the solved assignment.

  1. Calculator in kernel space using parameters passed
  2. Pass the file name, print the inode details
  3. Use proc interface to call different functions.
  4. Use proc interface to modify the behaviour of module.
  5. Make a linked list in kernel space – pass the values using ioctls
  6. Using kernel’s red-black tree for your data structures
  7. Using proc interface pass the name of the mount point and print the details.
  8. Print the superblock information if the mount point is passed
  9. Print the super block information of the “/” mounted file system