ReadingMaterial SystemCall KernelRecompilation-3
ReadingMaterial SystemCall KernelRecompilation-3
Sec. Page
Section Title
No. No.
5. Practice Problem 14
Important Note: Please do not try this directly on your laptop, you may
end up crashing your system/corrupting several files. We recommend installing
Virtual Box and setting up a Linux VM on it. You can find instructions on how to
do that here: https://itsfoss.com/install-linux-in-virtualbox/. Proceed with the next
steps only after a Ubuntu VM is up and running in Virtual Box.
$ sudo su
<Enter root password here>
$ cd /usr/src/
$ make oldconfig
<Reads the existing config file and prompts the user options in the current kernel
source that are not found in the file>
$ make defconfig [Use this for reconfiguration option for this assignment]
<Creates a default config file for the kernel delineating all the necessary modules
to be installed into the kernel>
Content of Makefile
1.1: add2Num.c:
1.2: addWrapper.h:
Practice Problem:
Write a New system call in Kernel space which will add 2 floating point numbers
and return the result to the user space. Make sure both the floating point
numbers are Valid Positive Numbers. Make sure the result is a Valid Positive
floating point number.