EmbLogic's Blog

Category Archives: Device Drivers

Initializing a driver using alloc_chrdev_region()

RCS file: header.h,v Working file: header.h head: 1.10 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 10; selected revisions: 10 description: this is header file here various header files are included such as module param.h init.h … Continue reading

Posted in Character Driver, Device Drivers | Tagged | Leave a comment

Implimentation of module insertion in character driver is done

RCS file: header.h,v Working file: header.h head: 1.2 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 2;    selected revisions: 2 description: includimg all the headerfile which are required like init.h modue.h kernel.h then give the author … Continue reading

Posted in Character Driver | Leave a comment

Successfully registerd the device,allocated memory and added the driver in the kernel space..

RCS file: header.h,v Working file: header.h head: 1.3 branch: locks: strict root: 1.3 access list: symbolic names: keyword substitution: kv total revisions: 3;    selected revisions: 3 description: This include header files Included init.h,module.h,fs.h Gave MODULE_DESCRIPTION —————————- revision 1.3    locked by: … Continue reading

Posted in Device Drivers | Leave a comment

Successfully Register the device, Allocated the memory and added the driver in the kernel space

RCS file: header.h,v Working file: header.h head: 1.4 branch: locks: strict root: 1.4 access list: symbolic names: keyword substitution: kv total revisions: 4; selected revisions: 4 description: Decleared the header files that are linux/init.h , linux/modules.h ,linux/fs.h also define MAJORNO, … Continue reading

Posted in Character Driver, Device Drivers | Leave a comment

Successfully Created kernel module and registered the device..

RCS file: header.h,v Working file: header.h head: 1.1 branch: locks: strict root: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1;    selected revisions: 1 description: This includes the header file. Included init.h,modules.h,fs.h. defined a extern variable major. gave … Continue reading

Posted in Device Drivers | Leave a comment

Successfully done driver for alloc, kmalloc, device Initialization

RCS file: header.h,v Working file: header.h head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: this is basic header file —————————- revision 1.1 date: 2015/04/24 05:20:37; author: root; state: Exp; … Continue reading

Posted in Character Driver, Device Drivers | Leave a comment

Successfully created simplest possible kernel module and registered device in kernel.

RCS file: header.h,v Working file: header.h head: 1.3 branch: locks: strict vineet: 1.3 access list: symbolic names: keyword substitution: kv total revisions: 3; selected revisions: 3 description: This is base header file for simplest kernel module. included modules.h included init.h … Continue reading

Posted in Character Driver | Leave a comment

Initialisation & registration of driver is done

RCS file: header.h,v Working file: header.h head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: this is basic header file —————————- revision 1.1 date: 2015/04/24 05:20:37; author: root; state: Exp; … Continue reading

Posted in Character Driver, Device Drivers | Leave a comment

Atomic Variables in Device Drivers

Sometimes, a shared resource is a simple integer value. Suppose your driver maintains a shared variable shrd that tells how many device operations are currently outstanding. Normally, even a simple operation such as: sgrd++; would require locking. Some processors might … Continue reading

Posted in Character Driver | Leave a comment

rcs of character device driver till synchronization

RCS file: RCS/header.h,v Working file: header.h head: 3.14 locks: strict root: 1.14 access list: symbolic names: keyword substitution: kv total revisions: 14;    selected revisions: 14 description: This is the base header file for our Project Character Device Driver ‘ Included … Continue reading

Posted in Character Driver | Leave a comment

rlog of dev_open dev_release.c ,dev_trim.c ,application.c ,dev_llseek.c ,dev_ioctl.c in character driver(till ioctl)

RCS file: RCS/dev_open.c,v Working file: dev_open.c head: 1.13 branch: locks: strict root: 1.13 access list: symbolic names: keyword substitution: kv total revisions: 13; selected revisions: 13 description: this file contain our dev_open routine —————————- revision 1.13 locked by: root; date: … Continue reading

Posted in Character Driver | Leave a comment

rlog of header.h,file_oper.h,ioctl.h,init.c,exit.c, in character driver(till ioctl)

RCS file: RCS/header.h,v Working file: header.h head: 1.17 branch: locks: strict root: 1.17 access list: symbolic names: keyword substitution: kv total revisions: 17;    selected revisions: 17 description: This is main header file All the required header file are include here … Continue reading

Posted in Character Driver | Leave a comment

trim the sculldev

RCS file: RCS/dev_trim.c,v 597 Working file: dev_trim.c 598 head: 1.34 599 branch: 600 locks: strict 601         root: 1.34 602 access list: 603 symbolic names: 604 keyword substitution: kv 605 total revisions: 34;    selected revisions: 34 606 description: 607 this file … Continue reading

Posted in Character Driver | Leave a comment

llseek implementation

RCS file: RCS/dev_llseek.c,v 896 Working file: dev_llseek.c 897 head: 1.1 898 branch: 899 locks: strict 900         root: 1.1 901 access list: 902 symbolic names: 903 keyword substitution: kv 904 total revisions: 1;     selected revisions: 1 905 description: 906 this llseek … Continue reading

Posted in Character Driver | Leave a comment

ioctl implementation

RCS file: RCS/dev_ioctl.c,v 914 Working file: dev_ioctl.c 915 head: 1.6 916 branch: 917 locks: strict 918         root: 1.6 919 access list: 920 symbolic names: 921 keyword substitution: kv 922 total revisions: 6;     selected revisions: 6 923 description: 924 This is … Continue reading

Posted in Character Driver | Leave a comment