EmbLogic's Blog

Category Archives: Character Driver

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 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

Trim() for character driver

RCS file: trim.c,v Working file: trim.c head: 1.14 branch: locks: strict root: 1.14 access list: symbolic names: keyword substitution: kv total revisions: 14; selected revisions: 14 description: —————————- revision 1.14 locked by: root; date: 2014/12/13 11:18:22; author: root; state: Exp; … Continue reading

Posted in Character Driver | Leave a comment

open() routine for character driver

RCS file: open_dev.c,v Working file: open_dev.c head: 1.12 branch: locks: strict root: 1.12 access list: symbolic names: keyword substitution: kv total revisions: 12; selected revisions: 12 description: open function for character driver is declared in this file —————————- revision 1.12 … Continue reading

Posted in Character Driver | Leave a comment

Device driver till device open and close

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

Posted in Character Driver | Leave a comment

Registering and unregistering the character driver into and from the kernel.

RCS file: ./header.h,v Working file: ./header.h head: 1.2 branch: locks: strict root: 1.2 access list: symbolic names: keyword substitution: kv total revisions: 2; selected revisions: 2 description: this is the header file for character driver in this file i include … Continue reading

Posted in Character Driver | Leave a comment