Operating System - HP-UX
1832350 Members
2485 Online
110041 Solutions
New Discussion

DLKM WSIO Interface Drivers

 
SOLVED
Go to solution
Hervé Barale
Occasional Contributor

DLKM WSIO Interface Drivers

I am porting Statically linked WSIO Interface Driver
from HP-UX 10.20 to HP-UX 11.0, for that i have
decided to use the DLKM mechanism, and to set
dynamically loadable my driver.
But When I try to use the example given for
the initialization, the compilation failed with the
following error :
error 1588 "MOD_WSIO_CORE" undefined
at the 'C' line:
mod_wsio_attach_list_add(MOD_WSIO_CORE, ...);

I have not found this type by greping in include files.
I have followed the HP document :
"Developing Dynamically Loadable Kernel Modules"
- Is this part wrong or not fully detailed ?
- Do you have any Idea about this part ?
2 REPLIES 2
Anthony Goonetilleke
Esteemed Contributor

Re: DLKM WSIO Interface Drivers

There was a problem where the HPUX-11 headers had not defined the MOD_WSIO_xxx this was meant to be fixed but you might have to apply a patch. The best bet is to log a call with HP and see if the SR is still open.
Minimum effort maximum output!
Michael Lampi
Trusted Contributor
Solution

Re: DLKM WSIO Interface Drivers

/* dlkm_help.h -- header info from wsio_private.h and wsio_dlkm.h */

#if 1
typedef struct nodeinfo {
struct isc_table_type *isc;
int dummy1,dummy2;
} dlkm_node_t;
#else
#include "./wsio_private.h"
#define dlkm_node_t wsio_node_cdio_priv_t
#endif
extern dlkm_node_t *io_get_private __((dlkm_node_t *node));
#define MOD_WSIO_CORE 0x1
#define MOD_WSIO_EISA 0x2
#define MOD_WSIO_PCI 0x4
A journey of 1000 steps ends in a mile.