Archive for August 2010

Cyber Security Workshop

August 29, 2010

The minutes of the Cyber Security Workshop :
Date: 4 February, 2008
Time:10:30 – 18:15
Venue: SDC Hall (Computer Dept., Govt. Polytechnic,Pune)
Lecturer: Dr. Decosta
Notes prepared by : Ashwin Tumma

The following file contains the details of the workshop:

CYBER SECURITY [File Size: 2.2 MB, No. of Pages : 22]

Linux Course Material

August 29, 2010

This document contains some of the concepts that we had studied in the Linux Course in the Summer Semester May – June 2008.

It has only some of the concepts because encapsulating all the concepts in a single document was a difficult task.

File is available here :

Linux Course Material [File Size: 102KB, No. of Pages : 8]

Inserting a module in the Linux Kernel

August 19, 2010

The following article contains source code and steps for inserting a LOADABLE-KERNEL-MODULE in the linux kernel. P.S. : It is recommended that you download the kernel source code first from here, compile the new kernel and insert the module in the newly compiled kernel. Steps for Linux Kernel Compilation are available here.

Module Name: Hello World. <hello.c>

Hello.c : Simplest Kernel Module
#define DRIVER_AUTHOR “Ashwin Tumma”
#define DRIVER_DESC “A Sample Driver”
int init_module(void)
printk(KERN_INFO “Hello World\n”);
return 0;
void cleanup_module(void)
printk(KERN_INFO “Goodbye World\n”);


#insmod hello.ko

Check in /var/log/messages : Your message init_module() gets displayed there.

#lsmod | grep hello
Will give the module number if the module is loaded in the Kernel.

#rmmod hello
Will remove the module from the Kernel.
Again check /var/log/messages : Your message exit_module() gets displayed there.

Steps for writing a character device driver : Steps Character_Device_Driver_Steps.pdf

Here’s a screenshot:

Creative Commons License
Inserting a module in the Linux Kernel by Ashwin Tumma is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 India License.