You might wanna read these two tutorials..

Basic Kernel Configuration
and
Easy Kernel Update

they should give you some Idea about tweaking your kernel..

I am bussy with a LKM tutorial.. Explaining how to make a kernel module with C.