Friday, February 28, 2014

Linux Device Drivers - Hello World Programme

This is my first Linux device driver program. Lets start from scratch .

Hello.c

#include <linux/init.h>    ##
#include <linux/module.h>
#include <linux/sched.h>
#include <asm/current.h>
MODULE_LICENSE("Dual BSD/GPL");

static int hello_init(void)
{
    printk(KERN_ALERT "Hello, world\n");
    return 0;
}

static void hello_exit(void)
{
    printk(KERN_ALERT "Goodbye, cruel world\n");
}

Makefile

obj-m=hello.o
KDIR= /lib/modules/$(shell uname -r)/build
all:
    $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
clean:
       rm -rf *.o *.ko *.mod.* .c* .t*

Tuesday, February 18, 2014

My Five Goa 'n' lessons


1) Sun Raise and Sun Set are the best times to showcase photography skills

2) Never mingle with the group where you are the only non-drinker and if yes, then refrain from any responsibilities like planning or accounts

3) Full moon nights @ beach with occasional tides touching your feet is the most awesome feeling i ever had

4) If you are not interest then don't do it and if somebody force you against then outrage your feeling

5) Strictly adhere to your own ethics/passion/policy

Monday, February 10, 2014

CASTE - CASTE - SAME OLD QUERY


Today en route to my office, i saw a old man standing on the road and waving his hand to stop my bike. He must be aged 70+ wearing a white colored dhoti and holding transparent poly cover which has medicines.
i could not apply sudden brakes and stopped after few meters ahead,after seconds he came to me walking and asked for lift till main chowrasta (junction).

While travelling, he told me that he is suffering with fever and heading to BBR hospital, which is in my route towards office. i was driving slowly than my normal average speed due to obvious reasons. After 15 minutes we reached the hospital, happily got down from the bike and said  "Thanks sir (with smiling) ",
 immediately without waiting for my response he puked the same old transitional most irritating question.

"What is your caste ?" is it ******* ??

I was blurred for few seconds why he asked a question which is inappropriate and also assuming it ?