Connecting with Beaglebone Black

Some days ago I bought Beaglebone Black (BBB) and tried connecting to it using USB mini to USB. As shown in tutorial it wasn’t a piece of cake. This post is to More »

Using Semaphore in Linux Kernel Programming

Today i’m gonna demonstrate a simple example of using Semaphore in Linux Kernel Programming. What is Semaphore Semaphore is way to avoid concurrency or race condition. There are two part of semaphore More »

Virtual Car, Char Device -Part1

Char device can be fun to work with. Here is one effort to understand the basics with a little fun. From some days ago i was thinking of building something new. I More »

 

Connecting with Beaglebone Black

Some days ago I bought Beaglebone Black (BBB) and tried connecting to it using USB mini to USB. As shown in tutorial it wasn’t a piece of cake. This post is to

Using Spinlock in Linux Kernel Programming

Today i’m going to implement locking using spinlock. The implementation will be done on my virtual car only. In case this is your first time in my blog then you might need

Using Reader Writer Semaphore in Linux Kernel Programming

Hi everyone. our last approach of implementing locking using semaphore had one disadvantage. When we know that two process are going to perform read only information then why should we look for

Using Semaphore in Linux Kernel Programming

Today i’m gonna demonstrate a simple example of using Semaphore in Linux Kernel Programming. What is Semaphore Semaphore is way to avoid concurrency or race condition. There are two part of semaphore

Virtual Car, Char Device -Part5

So how we are taking input for our char device (Virtual Car) We have a device file, so user write the command into that file using cat or by anyway, we scan

Virtual Car, Char Device -Part4

This time our aims are Open and Read callback methods Open method always succeed. we may or may not define one. Normally we define open callback method to initialize variables that we

Virtual Car, Char Device -Part3

So far we have gone through Header Files Global variables Utility functions struct file-operations struct v_car The next thing we’ll see is our module_init fucntion and cleanup_module function which will be called

Virtual Car, Char Device -Part2

We will create a structure for our car that will have all the essential properties of the car. In this section we will define our char device (Virtual Car) and will initialize

Virtual Car, Char Device -Part1

Char device can be fun to work with. Here is one effort to understand the basics with a little fun. From some days ago i was thinking of building something new. I

Download All images on a page

Well This is of use. Sometimes it becomes tricky to download all images on a webpage at once. Some well known solutions are download the page and the browser will do the