Question: Show on Linux how to do this step by step: This command will list the current kernel modules in three columns: name, size, and where

Show on Linux how to do this step by step:

This command will list the current kernel modules in three columns: name, size, and where the module is being /* Macros for registering module entry and exit points. */ module init (simple_init); module exit (simple

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. #include #include #include /*This function is called when the module is loaded. */ int simple_init (void) { printk (KERN_INFO "Loading Module "); return 0; } /*This function is called when the module is removed. */ void simple_exit (void) { printk (KERN INFO "Removing Module "); }

Step by Step Solution

3.48 Rating (145 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The images provided show a simple Linux kernel module source code and its accompanying macros for registering module entry and exit points To create c... View full answer

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 Operating System Questions!