Register the minidriver with the system
int mdriver_add( char *name,
int interrupt,
int (*handler)( int state,
void *data ),
paddr32_t data_paddr,
unsigned data_size);
The virtual address of this block is passed to the handler function as its data argument.
libc
This function registers the minidriver with the system, as follows:
You call mdriver_add() from main() in your board's startup code.
The index into the mdriver section of the system page for the newly added minidriver, or -1 if the minidriver wasn't added.
QNX Neutrino