EmbLogic's Blog

Author Archives: Ankit.singhal85@yahoo.com

Parallel Port DD (Compatibility mode ).

#use the parallel port in the compatibility mode which is work in the forward direction and in this i use the read operation which is seems to be the reverse operation but its not the reverse operation because we reterive … Continue reading

Posted in Uncategorized | Leave a comment

Parallel Port Device Driver(acquire the parallel pot by my DD)

#acquire the parallel port by my device driver… 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: include all the header file need for … Continue reading

Posted in Uncategorized | Leave a comment

Character Driver(/proc)

#sucessfully implement the /proc in device driver…. RCS file: application.c,v Working file: application.c head: 1.34 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 34; selected revisions: 34 description: this is the application program in the user … Continue reading

Posted in Uncategorized | Leave a comment

Character Driver(IOCTL for the set quantum)

#apply the ioctl in the kernel layer and get quantum and set quantum is work fine….and after changing the quantum size we are able to write according to that but we are not able to read when we are changing … Continue reading

Posted in Uncategorized | Leave a comment

API – application program interface

API, an abbreviation of application program interface, is a set of routines, protocols, and tools for building software applications. The API specifies how software components should interact and are used when programming graphical user interface (GUI) components.  A good API … Continue reading

Posted in Uncategorized | Leave a comment

Character Driver(Completion)

#for the another synchroniztion technique…..COMPLETION….here in the end of the devwrite i make a call for the completion and in the devread in the starting i call wait_for_completion() and in the end i call complete()….it work fine for me….. RCS … Continue reading

Posted in Uncategorized | Leave a comment

Character Driver(Semaphore)

#applying the semaphore….here i run the 4 application(open, write and read) from the single node…..and its working fine…. RCS file: application.c,v Working file: application.c head: 1.17 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 17; selected … Continue reading

Posted in Uncategorized | Leave a comment

Character driver (Problem in synchronization).

#problem persist in this as i required some synchronize technique because when i run multiple application onto the single node then data is to be in mingle form……do required semphore in this….. RCS file: application3.c,v Working file: application3.c head: 1.1 … Continue reading

Posted in Uncategorized | Leave a comment

Character Driver(SEEK_SET seeking operation in the reader).

#implementing the lseek(SEEK_SET) operation in the kernel layer then read the written bytes from the application layer, without closing the fd RCS file: application.c,v Working file: application.c head: 1.16 branch: locks: strict access list: symbolic names: keyword substitution: kv total … Continue reading

Posted in Uncategorized | Leave a comment

Character Driver(seek operation)

#implementing the lseek opereration in the kernel layer then read the writen bytes from the application layer, without closing the fd RCS file: application.c,v Working file: application.c head: 1.7 branch: locks: strict access list: symbolic names: keyword substitution: kv total … Continue reading

Posted in Uncategorized | Leave a comment

Character Driver(Read from kernel layer)

#implementing the read from the kernel layer into the application layer after performing the write operation… RCS file: application.c,v Working file: application.c head: 1.7 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 7; selected revisions: 7 … Continue reading

Posted in Uncategorized | Leave a comment

Character Driver(Write in the multiple Qsets)

#here i am able to write in the multiple qsets of the scull and by this i am able to write in the kernel layer…. RCS file: application.c,v Working file: application.c head: 1.7 branch: locks: strict access list: symbolic names: … Continue reading

Posted in Uncategorized | Leave a comment

Character Driver(Writing data in the 1 quantum)

#here i write in the 1 quantum of the scull and by this i am able to write in the kernel layer…. RCS file: application.c,v Working file: application.c head: 1.7 branch: locks: strict access list: symbolic names: keyword substitution: kv … Continue reading

Posted in Uncategorized | Leave a comment

Character Driver.

#register using the alloc_chrdev_region and unregister using the unregister_chrdev_region and then define the struct Sculldev and allocate the memory for it and then pointing the address of kmalloc with this struct type pointer.. RCS file: cleanup.c,v Working file: cleanup.c head: … Continue reading

Posted in Uncategorized | Leave a comment

Character Driver (Insertion of DD and Registration of DD into the kernel)

#insert the device driver and get register in the kernel i.e get the major number with a register_chrdev which is in fs.h and get unregister using the unregister_chrdev…..:) :) RCS file: init.c,v Working file: init.c head: 1.17 branch: locks: strict … Continue reading

Posted in Uncategorized | Leave a comment