Question: In this project, you will make a small change to the Linux source code. Follow the instructions called Linux Kernel Modules beginning on page 96

In this project, you will make a small change to the Linux source code.

Follow the instructions called Linux Kernel Modules beginning on page 96 of the textbook. Take screenshots of the code that you add to the Linux source as you go and paste them into a Word document.

In the final part of the assignment, you will also need to take screenshots of the kernel log buffer to show successful addition, traversal, and deletion of the linked list elements.

 In this project, you will make a small change to the

Linux source code. Follow the instructions called Linux Kernel Modules beginning on

page 96 of the textbook. Take screenshots of the code that you

add to the Linux source as you go and paste them into

a Word document. In the final part of the assignment, you will

also need to take screenshots of the kernel log buffer to show

successful addition, traversal, and deletion of the linked list elements. Programming Projects

Linux Kernel Modules In this project, you will learn how to create

Programming Projects Linux Kernel Modules In this project, you will learn how to create a kernel module and load it into the Linux kernel. The project can be completed using the Linux virtual machine that is available with this text. Although you may use an editor to write these C programs, you programs, and you manage the modules in the kernel. will have to use the terminal application to compile the will have to enter commands on the command line to As you'll discover, the advantage of developing kernel modules is that it is a relatively easy method of interacting with the kernel, thus allowing you to write programs that directly invoke kernel functions. It is important for you to keep in mind that you are indeed writing kernel code that directly interacts with the kernel, That normally means that any errors in the code could crash the system! However, since you will at wor will be using a virtual machine, any failures st only require rebooting the system. Part I-Creating Kernel Modules The first part of this project involves following a series of steps for creating and inserting a module into the Linux kernel. Programming Projects 97 You can list all kernel modules that are currently loaded by entering the lsmod This command will list the current kernel modules in three columns: name, size, and where the module is being used. The following program (named simple.c and available with the source code for this text) illustrates a very basic kernel module that prints appropriate messages when the kernel module is loaded and unloaded. Programming Projects Linux Kernel Modules In this project, you will learn how to create a kernel module and load it into the Linux kernel. The project can be completed using the Linux virtual machine that is available with this text. Although you may use an editor to write these C programs, you programs, and you manage the modules in the kernel. will have to use the terminal application to compile the will have to enter commands on the command line to As you'll discover, the advantage of developing kernel modules is that it is a relatively easy method of interacting with the kernel, thus allowing you to write programs that directly invoke kernel functions. It is important for you to keep in mind that you are indeed writing kernel code that directly interacts with the kernel, That normally means that any errors in the code could crash the system! However, since you will at wor will be using a virtual machine, any failures st only require rebooting the system. Part I-Creating Kernel Modules The first part of this project involves following a series of steps for creating and inserting a module into the Linux kernel. Programming Projects 97 You can list all kernel modules that are currently loaded by entering the lsmod This command will list the current kernel modules in three columns: name, size, and where the module is being used. The following program (named simple.c and available with the source code for this text) illustrates a very basic kernel module that prints appropriate messages when the kernel module is loaded and unloaded

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!