Tag Archives: OS

Add a new syscall into Linux kernel – for fedora 18 with kernel 3.8.7

Adding a new syscall into Linux kernel would be tricky for the beginners (like myself), especially considering the kernel source tree structure changes among different versions. It seems most of the online tutorials focusing on older versions of kernel (2.6.X) … Continue reading

Posted in OS | Tagged , , , , | Leave a comment

Linux kernel linked list

This post gives a sample file used to play with Linux kernel linked list <linux/list.h>, as well as a makefile used to build this kernel module. lsmod, insmod, rmmod and dmesg are needed. The reference is the book “Operating System … Continue reading

Posted in OS | Tagged , , , | 2 Comments

Linux kernel compiling, updating and kernel module compiling, loading and removing

Brief intro to Linux kernel compiling and updating, as well as Linux kernel module compiling, loading and removing. The Linux kernel we are playing with is 3.8.4. 1. Linux kernel compiling and updating Ubuntu: sudo apt-get install wget sudo apt-get … Continue reading

Posted in OS | Tagged , , | Leave a comment

kernel design approaches

A digest for kernel-wide design from wikipedia (including ALL the pics and some definitions) 1. Monolithic kernel (宏内核) a: entire OS in kernel space and supervisor mode (eg, ring 0); b: a set of primitives or system calls for ALL … Continue reading

Posted in OS | Tagged , , , , , , , | Leave a comment