![Tews Technologies TDRV006-SW-82 User Manual Download Page 7](http://html1.mh-extra.com/html/tews-technologies/tdrv006-sw-82/tdrv006-sw-82_user-manual_1093641007.webp)
TDRV006-SW-82 - Linux Device Driver
Page 7 of 31
Change Major Device Number
2.5
This paragraph is only for Linux kernels without dynamic device file system installed.
The TDRV006 driver uses dynamic allocation of major device numbers per default. If this isn’t suitable
for the application it’s possible to define a major number for the driver.
To change the major number edit the file tdrv006def.h, change the following symbol to appropriate
value and enter
make install
to create a new driver.
TDRV006_MAJOR
Valid numbers are in range between 0 and 255. A value of 0 means
dynamic number allocation.
Example:
#define TDRV006_MAJOR
122
Be sure that the desired major number is not used by other drivers. Please check
/proc/devices
to see which numbers are free.
Keep in mind that it is necessary to create new device nodes if the major number for the
TDRV006 driver has changed and the makenode script is not used.
Configuration
2.6
To adjust application specific driver properties see tdrv006def.h and look for the following symbol
defines (#define <symbol> <value>):
TDRV006_MAX_EVENT_RECORDS
This symbol specifies the size of the interrupt routine event record queue. If you have input
event loss during multiple Input Event jobs, please double the certain value.
TDRV006_MAX_EVENTWAIT_JOBS
This symbol specifies the maximum number of concurrent jobs waiting for Input Events.