C program to read mac address using WiFi interface name

If you need to get the mac address of certain wifi interface using C program, you can … Read more

Create a Dual Partition SD Card with Linux / Ubuntu

Start ‘fdisk’. For me, the SD card reader/writer has the SD card show up on /dev/sdc. I … Read more

Using electric fence for debugging memory leaks in Linux

Electric Fence helps you detect two common programming bugs: software that overruns the boundaries of a malloc() memory … Read more

What is Linux Out-Of-Memory OOM Killer ?

Major distribution kernels set the default value of /proc/sys/vm/overcommit_memory to zero, which means that processes can request … Read more

How to avoid a process from being killed in case of Out of Memory ?

In our previous post, we understood “What is Out of Memory Killer ?” In this post, we … Read more

insmod: ERROR: could not insert module hello.ko

We tried to write a simple class driver framework which will create a directory in /sys/class, we … Read more

C program to print Hex values of characters in string

Following program prints the hexadecimal values of all the characters in any string. Currently we have used … Read more

How to avoid zombie process in Linux ?

Zombie process is the process which dies/finishes immediately and whose parent didn’t cares to handle the status … Read more

How to create process in Linux using fork system call ?

Below is simple process creation program using fork system call, fork return child’s process Id in main/parent … Read more

How to use Valgrind to find memory leaks ?

Valgrind is an instrumentation framework for building dynamic analysis tools. There are Valgrind tools that can automatically … Read more