Any application that runs on a Linux system is assigned a process ID or PID. This is a numerical representation of the instance of the application on the system. It is used by the system administrator who may have to … Continue reading
doing structure pointer includeing arrays in loop with functions making linklist
1. Compatibility Mode This mode defines the protocol used by most PCs to transfer data to a printer. It is commonly called the “Centronics” mode and is the method utilized with the standard parallel port. In this mode, data is … Continue reading
Completed my master array declaring functions of each type.
The IEEE 1284 standard allows for faster throughput and bidirectional data flow with a theoretical maximum throughput of 4 megabytes per second; actual throughput is around 2 megabytes/second, depending on hardware. In the printer venue, this allows for faster printing … Continue reading
Driver Modules can take command line arguments, but not with the argc/argv you might be used to. To allow arguments to be passed to your module, declare the variables that will take the values of the command line arguments as … Continue reading
I have created master array. But the main problem to create master array by pointer. Let see how it is done.
i have installed fedora 17 but my pc heats up too much.I have tried all things.And one more thing brighness key dont work also.
#include #include #include #include #include #include #include #include #include MODULE_LICENSE(“GPL”); MODULE_AUTHOR(“KERNEL_CODE”); #define DEBUG #define NAME “char_dev” #define NODE 5 #define SCULL_MAJOR 0 #define SCULL_MINOR 0 #define QUANTUM 8 #define SIZE 0 #define QSET 8 #define DEV_SIZE 1024 #define DEVICE_NAME “char_dev” … Continue reading
RCS file: x.c,v Working file: x.c raghav: 1.5 access list: keyword substitution: kv total revisions: 5; selected revisions: 5 description: Program to delete any file using file handling in c With function remove() we can delete/remove any file from the … Continue reading
There are few steps to follow to open a file inside kernel from application layer. 1. Insert your character device driver inside the kernel using insmod and check its entry in the device driver table using cat /proc/devices and note … Continue reading
Q1. Can we print any cotent in the scanf statement (like, as “Datais”,) is tried to printed in the following program. If no then why not, if yes then why? Q2.Why the following program is producing outuput as “DATA is … Continue reading
CHARACTER DEVICE DEVELOPMENT: OPEN: CLOSE: —————————- revision 1.6 date: 2014/02/15 09:26:13; author: root; state: Exp; lines: +3 -0 *** empty log message *** —————————- revision 1.5 date: 2014/02/15 09:19:22; author: root; state: Exp; lines: +3 -1 release prototype use and … Continue reading
There are some points which we have to note down while working in character device driver: 1. The second argument of unregister_chrdev_region function means the number of devices to unregister from the device table …. should be matched with the … Continue reading
Implementing cdev_add and cdev_init RCS file: header.h,v Working file: header.h head: 1.4 branch: locks: strict raghav: 1.4 access list: symbolic names: keyword substitution: kv total revisions: 4; selected revisions: 4 description: This is a seperate header file where i have … Continue reading