Posts

Showing posts with the label Linux system programming

Basics of Linux Device drivers

Image
As there is lott of demands in the industry for linux professionals, a lott of software engineers have taken the learning path of linux internals as way to a successful career. Notes: I will periodically update this series of posts,as time becomes available to me. Resources: There are various resources available over the internet to assist your learning of driver development.I recommend please go through Linux Device Drivers book by CORBET and RUBINI 3rd Ed ,because this new edition contains updated info related to latest kernel 2.6.x. Device driver writers are expected to be  very proficient in C programming and now-a-days  in C++ too so make sure you develop a good practice in coding using these languages.Rest assured I will guide you to have a deep plunge into the oscean of device drivers. Add image to Myspace, Digg, Facebook, and others! Device Drivers : These represent a sofware layer that is mostly used for hardware abstraction.That means the layer provides a unified mecha...

Linux system programming : Differences between User Space and Kernel Space

Here we list a few : >userspace :the processor regulates direct access to hardware and unauthorized access to memory. >kernel space : access to the hardware is possible directly , depends upon previledge levels > both have different address space >user spece request is translaetd to a system call that lets the processor to switch mode to enter the kernel space , here kernel threads handle the execution > exceptions in user space are less fatal .. while kenel space exceptions will kill the process >kernel space supports module load /unload