Operating System - HP-UX
1823228 Members
4317 Online
109648 Solutions
New Discussion юеВ

Re: modify a major number associated to a driver

 
Stefano_1
Frequent Advisor

modify a major number associated to a driver

#lsdev -d sinap
Character Block Driver Class
184 -1 sinap pseudo


I need to change the major number of the driver sinap.
How I can do it (if it's possible do it...)??
many thanks
3 REPLIES 3
Tomek Gryszkiewicz
Trusted Contributor

Re: modify a major number associated to a driver

No, you cannot change it by yourself.

-Tomek
Bruno Vidal
Respected Contributor

Re: modify a major number associated to a driver

Hi,
It is possible if this driver has been written correctly (following hpux rules). Usualy this major is defined in the include of the driver, and at linking time when using mk_kernel it use a file under /usr/conf/master.d/driver_name, and in this file you should find the definition of the major number (for diag2 example):
* Driver Block major Char major
diag2 -1 232

You can modify it and link a new kernel. But be carefull, the driver is perhaps not supporting this modification.

Cheers.
Thayanidhi
Honored Contributor

Re: modify a major number associated to a driver

Hi,

First of all why you want to change major no.
Major assigned by the system when it is configured.

Major number
Identifies the kernel driver used for I/O
Instructs HP-UX how to conduct the I/O

If you change it may not function.
If you want to test, create a new device file
using mknod command.

TT
Attitude (not aptitude) determines altitude.