












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An overview of linux kernel modules, their role in os extensibility, and the process of creating and installing them using c language. It covers the basic structure of a c program for a kernel module, the use of 'insmod' and 'rmmod' commands, and the required functions and differences between a normal c application and a kernel module.
Typology: Slides
1 / 20
This page cannot be seen from the preview
Don't miss anything!













Two mechanisms for ‘extensibility’:
$ /sbin/insmod myLKM.ko
$ /sbin/rmmod myLKM
$ /sbin/lsmod
// this gets called during module installation
// this gets called during module removal
ifneq ($(KERNELRELEASE),) obj-m := mymod .o else KERNELDIR := /lib/modules/$(shell uname –r)/build PWD := $(shell pwd) default: $(MAKE) -C $(KERNELDIR) M=$(PWD) modules endif