Compiling question

I’m not sure if this is the exact newsgroup to post this in, but I jsut have
a quick question.
If I write a device driver for something, where do I put the compiled code?
Where does QNX search for device drivers to load into memory?

Thanx in advance

Rob <rob@altsoftware.com> wrote:

I’m not sure if this is the exact newsgroup to post this in, but I jsut have
a quick question.
If I write a device driver for something, where do I put the compiled code?
Where does QNX search for device drivers to load into memory?

QNX doesn’t search of device drivers, per se. They are, actually, just
seperately loadable programs, like anything else. You could run them
from the command line, or from a shell script, or whatever.

A normal QNX4 system startup runs the stuff in the boot image, then it
invokes a shell to run the sysinit, and in the sysinit is a common place
to start a driver. If you look at your sysinit file, you will see drivers
being started there already.

Check the docs for more information on the sysinit file – it lives in
/etc/config, but comes in a variety of names, often sysinit.node, which is
the one usually run.

-David

QNX Training Services
dagibbs@qnx.com