Interview Question for Developer Program Engineers


Country: India




Comment hidden because of low score. Click to expand.
1
of 1 vote

the two methods are
1. dynamic insertion as a kernel module (modeprobe and insmod)
2. linking statically to the kernel code

- Anni February 04, 2016 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Please read the following link
wiki dot archlinux dot org/index dot php/kernel_modules

- Bharat Kumar Arya January 13, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

insmod, modprob

- Anonymous January 16, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

what is basic difference in insmod & modprobe.

- mayur_nandurkar January 20, 2015 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

modprobe reads the modules from /lib/modules/$(uname -r)/modules.dep.bin (or without the .bin suffix if the other file is not available). From the same file, dependencies are loaded.

modprobe accepts the name of a .ko file in /lib/modules/$(uname -r) (e.g. nvidia-current for the file dkms/nvidia-current.ko) and aliases (modules.alias.bin). Builtins (modules.alias.bin) are recognized as well, but since these modules are loaded by default, there is not point in modprobing this kind of modules.

insmod on the other hand accepts paths to files. The module does not have to reside in /lib/modules/$(uname -r), but dependencies are not automatically loaded. This is the lower program used by modprobe to load modules.

- Bharat Kumar Arya January 20, 2015 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

the two methods are
1. dynamic insertion as a kernel module (modeprobe and insmod)
2. linking statically to the kernel code

- Anni February 04, 2016 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Both insmod and modprobe is using to insert kernel module.
But everyone will prefer modprobe because insmod have no capability to resolve dependency issue . But modprobe can do that.

While we are installing a module using modprobe , first it will check the dependancies in /lib/modules/<kernel-version>/modules.dep. This file contains entries for a module and its corresponding dependencies . modules.dep file is generated by “depmode” command.

modprobe in action :-

List available Kernel modules
# modprobe -l | more

List Currently loaded modules
# lsmod | more

Install new module
# modprobe <module name >
example :- modprobe ip_tables

Remove a module
# modprobe -r <module name>

we can use ” rmmod ” , also to delete a module. But admins prefer modprobe with -r option , because modprobe is cleverer than insmod and rmmod.

- Naresh Pirati October 14, 2016 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Both insmod and modprobe is using to insert kernel module.
But everyone will prefer modprobe because insmod have no capability to resolve dependency issue . But modprobe can do that.

While we are installing a module using modprobe , first it will check the dependancies in /lib/modules/<kernel-version>/modules.dep. This file contains entries for a module and its corresponding dependencies . modules.dep file is generated by “depmode” command.

modprobe in action :-

List available Kernel modules
# modprobe -l | more

List Currently loaded modules
# lsmod | more

Install new module
# modprobe <module name >
example :- modprobe ip_tables

Remove a module
# modprobe -r <module name>

we can use ” rmmod ” , also to delete a module. But admins prefer modprobe with -r option , because modprobe is cleverer than insmod and rmmod.

- Naresh Pirati October 14, 2016 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More