what happens when we do insmod & rmmod in Linux Device Drivers ?

Answers were Sorted based on User's Feedback



what happens when we do insmod & rmmod in Linux Device Drivers ?..

Answer / guest

At time of insmod required o's brings in ram or updated the
kernen with the perticular device driver. At the time of
rmmod removes the o's by kmod it kills the process and
refresh the kernel.

Is This Answer Correct ?    12 Yes 6 No

what happens when we do insmod & rmmod in Linux Device Drivers ?..

Answer / rulingminds

insmod: insmod is a tool used to attach a module to the
running linux kernel. This will take the kernel object(.ko)
and takes all executable code and data sections of the .ko
and attach it to the running linux kernel.

rmmod: used to remove or deattach a module code from the
running kernel

see www.rulingminds.com/modprogpart1 &
www.rulingminds.com/modprogpart2

for in depth explanation of the Linux module programming

Is This Answer Correct ?    5 Yes 3 No

Post New Answer

More Linux System Calls Interview Questions

what is stored at /lib/modules ?

2 Answers   NetApp,


How to give the root permision to users?

3 Answers   Wipro,


What will happen when we invoke a system call and say with an example of invoking a system call ?read? for a device?

3 Answers   NetApp,


1. Where the History file can be located? 2. How will you harden the server? 3. Diff between Raid 1 and Raid 5? 4. What is the largest disk size can be used in LVM? 5. How will you remove a PV from lvm without any data loss? 6. What is the diff between ext3 and ext2 File system? 7. How we can use resize2fs, what is the purpose? 8. What is the purpose of LVM? Why it is used? 9. If the FS is in read-only mode, so we cannot create any file. How will you fix it? 10. How to create swap partition after OS installation? 11. What is the diff between ssh and telnet? 12. How to find out the dependency required for a package?

3 Answers   IBM,


why the kernel panic error was appering?

13 Answers   Air2Web, Allianz,






What does exec family return?

1 Answers  


1.Diff between Active and passive FTP? 2.What is anacron? 3.Diff between yum update and yum install while doing for kernel? 4.root_squash and no_root_squash does what? 5.What are the commands will you execute to find a new hardware? 6.How will you find out a lun allocated from SAN? 7.What is the main diff in CaT5 and CAT6 cable, except the 1/100 and 1/1000? 8.What is stale NFS and How will you fix it? 9.What is kernel panic error? 10.How will you recover password and shadow file, in case both got deleted. Explain the steps? 11.Explain boot process 12.What is network bonding. Explain the steps? 13.What are the exit codes returned by FSCK? 14.What is LDOM? 15.Diff between block and character device?

2 Answers   Wipro,


what is bus trap.

1 Answers   NetApp,


what is the diff b/w MUTEX and semaphore?

12 Answers   Sony, TCS,


how to configure ftp server on redhat linux?

9 Answers   Infosys,


linux system its not booting up its showing groub error what i need to do?

4 Answers   Wipro,


if one of the critical section code (linked list) is under ISR & another one in kernel thread ? How you will synchronize for this critical section code ?

4 Answers   NetApp,


Categories