EmbLogic's Blog

Category Archives: Uncategorized

Character Device Driver – Blocking IO using wait queues

How does a driver respond if it cannot immediately satisfy the request? A call to read may come when no data is available, but more is expected in the future. Or a process could attempt to write, but your device … Continue reading

Posted in Uncategorized | Leave a comment

character driver with open,release,read,write and trim

RCS file: ./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: header file —————————- revision 1.17 locked by: root; date: 2014/12/05 10:54:41; author: root; … Continue reading

Posted in Uncategorized | Leave a comment

write routine for character driver

RCS file: write_dev.c,v Working file: write_dev.c head: 1.37 branch: locks: strict root: 1.37 access list: symbolic names: keyword substitution: kv total revisions: 37; selected revisions: 37 description: start dev_write() —————————- revision 1.37 locked by: root; date: 2014/12/15 04:29:54; author: root; … Continue reading

Posted in Uncategorized | Leave a comment

client-server project using multi-threads

RCS file: ./server.c,v Working file: ./server.c head: 1.9 branch: locks: strict root: 1.9 access list: symbolic names: keyword substitution: kv total revisions: 9; selected revisions: 9 description: included all the header files that will be used in the code —————————- … Continue reading

Posted in Uncategorized | Leave a comment

basic implementation of thread

RCS file: ./threads.c,v Working file: ./threads.c head: 1.7 branch: locks: strict root: 1.7 access list: symbolic names: keyword substitution: kv total revisions: 7; selected revisions: 7 description: included all the header files that will be used in the code —————————- … Continue reading

Posted in Uncategorized | Leave a comment

ipc using FIFO

RCS file: ./server.c,v Working file: ./server.c head: 1.6 branch: locks: strict root: 1.6 access list: symbolic names: keyword substitution: kv total revisions: 6; selected revisions: 6 description: includd all the header files that will be used inn the functions created … Continue reading

Posted in Uncategorized | Leave a comment

creation,traversing,insertion and deletion in linked list

RCS file: ./link_list.c,v Working file: ./link_list.c head: 1.7 branch: locks: strict root: 1.7 access list: symbolic names: keyword substitution: kv total revisions: 7; selected revisions: 7 description: defineed all the header files that will be used in the code created … Continue reading

Posted in Uncategorized | Leave a comment

Command to know CPU Architecture & Endianness

lscpu: lscpu gathers CPU architecture information like number of CPUs, threads, cores, sockets, NUMA nodes, information about CPU caches, CPU family, model, bogoMIPS, byte order and stepping from sysfs and /proc/cpuinfo, and prints it in a human-read?able format. Cmd to … Continue reading

Posted in Uncategorized | Leave a comment

ipc using message queue and semaphores

rcs: warning: No options were given; this usage is obsolescent. rcs: RCS/server.c,v: No such file or directory [root@(none) ipc_project]# rcs -i server.c RCS file: server.c,v enter description, terminated with single ‘.’ or end of file: NOTE: This is NOT the … Continue reading

Posted in Uncategorized | Leave a comment

communication using message queue

RCS file: receiever.c,v enter description, terminated with single ‘.’ or end of file: NOTE: This is NOT the log message! >> included all the header files that will be used in the code >> . done [root@(none) msgq]# ci ./receiever.c … Continue reading

Posted in Uncategorized | Comments Off

complete mdc project

RCS file: mdc.c,v Working file: mdc.c head: 1.8 branch: locks: strict root: 1.8 access list: symbolic names: keyword substitution: kv total revisions: 8; selected revisions: 8 description: included all the header files entered the string using gets() —————————- revision 1.8 … Continue reading

Posted in Uncategorized | Leave a comment

IEEE standard 1284-1994 –compatibility mode communication(parallel port device driver)

RCS file: header.h,v Working file: header.h head: 1.1 branch: locks: strict emblogic: 1.1 access list: symbolic names: keyword substitution: kv total revisions: 1; selected revisions: 1 description: included header files —————————- revision 1.1 locked by: emblogic; date: 2014/11/11 05:29:43; author: … Continue reading

Posted in Project 9: Embedded Linux on ARM, Uncategorized | Leave a comment

complete ipc project using semaphores

RCS file: server.c,v Working file: server.c head: 1.13 branch: locks: strict root: 1.13 access list: symbolic names: keyword substitution: kv total revisions: 13; selected revisions: 13 description: included all the header files that will be used in the code —————————- … Continue reading

Posted in Uncategorized | Leave a comment

CREATING STATIC LIBRARY

Static libraries are collection of ordinary object files. For a static library, the actual code is extracted from the library by the linker and used to build the final executable at the point you compile/build your application. Steps: 1.Creates .c … Continue reading

Posted in Linux Internals and System Programming, Uncategorized | Leave a comment

IEEE 1284 device driver for 74LS244 parallel port- Compatibility mode

Implementing read and write operations for Compatibility mode.In compatibility mode , the data is sent character by character on a hardware which consists of 8 led. It is tested by sending data on LEDs connected on a hardware. RCS file: … Continue reading

Posted in Uncategorized | Leave a comment