Implemented the driver fror n number of byte reading and n number of byte writing. Now going to sleep as provjot sir said today …. go to bed on time. good night. RCS file: lkm.c,v Working file: lkm.c head: 1.17 … Continue reading
RCS file: chard.c,v Working file: chard.c head: 1.5 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 5; selected revisions: 5 description: registered and unregistered devices using alloc_chrdev_region and unregis_chrdev_region. implemented scull_setup function. implemented scull_open routine. started … Continue reading
Completed registering and unregistering driver. Implemented Open and Release operations to open and close a node by using my own charater driver.
completed the task of opening a node, with the help of my own registered driver.
Completed today’s work… Made the simplest device driver
Sir, i have completed read, write operation in character driver, using semaphore,ioctl. Also implementing kernel timer.
hello sir, I wanted to ask that how can we use Lables for calling a predefined kernel function from another function. For .eg.. ssize_t scull_write() { write: xyz; } ssize scull_read() { goto write; } this calling of the write … Continue reading
#ifndef _IOC_NONE # define _IOC_NONE 0U #endif #ifndef _IOC_WRITE # define _IOC_WRITE 1U #endif #ifndef _IOC_READ # define _IOC_READ 2U #endif please explain these lines of code>>!!
proper implementation of cdev_init and cdev_add for 25 nod done.
driver register and unregister with kernel perform using register_chrdev function and alloc_chrdev_region and unregister with unregister_chrdev_region . one issue faced: Instead of whole program execute successfully there is no output and after reboot it gives correct output.
Sir, I have implemeted the project of using multi thread in a single process then in multi process process for char driver by using sleep in the app.c for synchronization between multi thread for read,write,open,close in single process. Is it … Continue reading
Sir, I have implemented /proc file system successfully.
in case of append in character driver where we have to allocate new memory with continuation to the old memory (in lseek or write function)