EmbLogic's Blog

Category Archives: Character Driver

Module code to show how to pass parameters to a module when using insmod using module_param() macro.

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: Header file:<linux/init.h> is included to support module_init() and module_exit() macros. —————————- revision 1.4   … Continue reading

Posted in Character Driver, Device Drivers | Leave a comment

Charact. Device Driver- Synchronization Techniques

Completed Synchronizations Technique: 1. Semaphore 2. Mutex 3. RW_Semaphore 4. Completion 5. Spinlock

Posted in Character Driver | Tagged , | Leave a comment

DEVICE DRIVER

head    1.3; access; symbols; locks root:1.3; strict; comment @ * @; 1.3 date    2014.01.07.05.55.57;    author root;    state Exp; branches; next    1.2; 1.2 date    2014.01.07.04.44.27;    author root;    state Exp; branches; next    1.1; 1.1 date    2014.01.07.03.22.24;    author root;    state Exp; branches; next    … Continue reading

Posted in Character Driver | Tagged | Leave a comment

DEVICE DRIVER SCULLDEV ALLOCATION & DEALLOCATION

module initialization log_file head    1.2; access; symbols; locks root:1.2; strict; comment @ * @; 1.2 date    2014.01.07.04.44.27;    author root;    state Exp; branches; next    1.1; 1.1 date    2014.01.07.03.22.24;    author root;    state Exp; branches; next    ; desc @device driver registerd using alloc_chrdev_region … Continue reading

Posted in Character Driver | Tagged | Leave a comment

Character Device Driver 06/01/2014

log files head    1.1; access; symbols; locks; strict; comment    @ * @; 1.1 date    2014.01.06.10.23.58;    author root;    state Exp; branches; next    ; desc @Header file for init.c and exit .c —————————————————————————————————————————————————– head    1.1; access; symbols; locks; strict; comment    @ * … Continue reading

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

device driver module registration

module initialization log_file head    1.1; access; symbols; locks root:1.1; strict; comment @ * @; 1.1 date    2014.01.07.03.22.24;    author root;    state Exp; branches; next    ; desc @device driver registerd using alloc_chrdev_region @ 1.1 log @Initial revision @ ______________________________________________________________________________________________________________________________________________________________________ module clean_up log_file … Continue reading

Posted in Character Driver | Tagged | Leave a comment

character driver tutorial

HERE I AM GIVING YOU THE IMPLIMENTATION PROCEDURE TO CLEARIFY THE ALL STEP:- Initialization of driver -> Mapping of system calls from application to the driver -> open call -> Mapping of memory on to the device (including trim function) … Continue reading

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

CHARACTER DEVICE DRIVER

CHARACTER DEVICE DRIVER   Device driver is a software implemented part of the kernel to provide a interface or interaction between hardware and file system , Device driver runs in kernel space as a part of kernel , which can … Continue reading

Posted in Character Driver, Device Drivers | Leave a comment

Character Driver

CHARACTER DRIVER As we have seen always, there is a Driver which drives every machine automatically or manually. In the same way Driver plays most important role in LINUX. Before we move on to Character Driver lets talk a bit … Continue reading

Posted in Character Driver | Leave a comment

Character Device Driver

Character Driver   Device drivers are building blocks of a OS. In Linux there are three types of device driver i.e. Character Driver Block Driver Pipes Driver Device driver are used to make hardware do a specific job with some … Continue reading

Posted in Character Driver, Device Drivers | Leave a comment

Character Device Driver

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 the base module. —————————- revision 1.10 date: 2013/10/31 07:36:18; author: Emblogic; state: Exp; … Continue reading

Posted in Character Driver | Leave a comment

Log file for Character Device Driver

RCS file: header.h,v Working file: header.h head: 1.11 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 11; selected revisions: 11 description: This is the header for the base module. —————————- revision 1.11 date: 2013/10/21 10:35:24; author: … Continue reading

Posted in Character Driver | Leave a comment

character driver

i have done timer with wait_event_interruptible successfully……

Posted in Character Driver | Tagged , | Leave a comment

E30.01.30 (Character Driver)

implemented busywait delay and processor yielding delay… —————————- revision 1.17 locked by: emblogic; date: 2013/08/07 13:00:03; author: emblogic; state: Exp; lines: +161 -17 implemented delay using busywait method (using cpu_relax). implemented a delay using processor yielding method(using schedule()). working on … Continue reading

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

Charecter Driver logfile

revision 1.33 locked by: sampath; date: 2013/08/07 12:03:17; author: sampath; state: Exp; lines: +120 -12 Timers Implementation calculted number of jiffies for char driver operation, used macro time_after to compare jiffie values converted jiffies to seconds and nanoseconds using jiffies_to_timespec … Continue reading

Posted in Character Driver, Uncategorized | Tagged | Leave a comment