Tag: Linux

Linux – Writing Fault handlers

Every Linux C/C++ developer is familiar with the message “Segmentation fault (core dumped)” , It can happen by accessing wrong memory address, making a floating point error and more. To find out the problem, you need to enter debug mode or use the core dump Post mortem – core dump While the program is loading […]

Read more

Linux file systems and Block layer

Presentation from linux kernel meetup Linux VFS and Block some nice links for more information: Simple file system example and details here (multiple posts) The page cache chapter from linux kernel development book Nice post – linux VFS Block filter example Dive into linux IO path The block IO layer  

Read more

The Amazing numbers of Linux OS

1.3 Million smartphones running Linux are activated every single day. 7,00,000 televisions are sold every single day running Linux. 92% of the world’s high performance computing systems, that predict climate change, forecast the weather, run the CERN super collider are all Linux. 85% of the world’s global equity trading platforms are running linux. read mode […]

Read more

Linux 4.10 ARM System Calls Table

As a result of continues changes in linux kernel, new system calls are added all the time. In version 4.9, to support a new system call we need to change a source assembly file (arch/arm/kernel/calls.S) and to add the source file with SYSCALL_DEFINEx macro and the function declaration From version 4.10 it is done by […]

Read more

Linux Shared Libraries

While writing applications in linux , the developer can use tons of libraries. Each library can packs functions, classes and variables and it is very  important to understand how to create and work with it. Lets start with simple example: Implicit link int add(int a,int b) { return a+b; } int sub(int a,int b) { […]

Read more

Using mprotect system call to debug memory problems

One of the decisions you need to take when you write a multi tasking application is whether to use processes (using fork system call) or threads (using posix library) The main benefit of using multiple threads is the memory that is shared between them but this feature can also make problems while one thread for […]

Read more