From the course: Linux Device Drivers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Effectively use module commands

Effectively use module commands - Linux Tutorial

From the course: Linux Device Drivers

Start my 1-month free trial

Effectively use module commands

- [Instructor] Module usage involves a variety of commands. Some of them privileged. Let's take a look. Here we see the list of module commands, lsmod, insmod, modprope, modinfo and rmmod You might not use those in that order, but that's the order we're going to discuss them. So these are commands. So commands like insmod and rmmod are things you type into the shell, that's user pace stuff going on. But they will make system calls. They will ask the kernel to do stuff like load a module. So the module itself will execute inside kernel space. The insmod command is for inserting a module, and it's a privilege command. As you can imagine, since these files have code in them, we wouldn't want just unprivileged users to be able to load code in the kernel that's going to execute. So this insmod command dynamically loads a module in the kernel, that is the kernel is already running and we're dynamically adding new code to it.…

Contents