I have been reading manuals (User Guides, utility reference) but I was not able to find anything which tells me what hard ware driver my system is using currently.
For example, if I want to know the name of the driver being used by io-net, how can I do it? Similarly for my PCMCIA card, Graphics Card, etc?
I know I can look it up at on QNX Hardware support site
but it is very cumbersome as first I will have to find out the hardware name and version and then check against the database in the above link.
Is there anything like lsmod (in Unix, Linux) on QNX6?
This is QNX, drivers are not in the kernel, they are regular processes (or libraries in regular processes).
Thus, there is no need for a special command like lsmod, which has to dig into the kernel via a special interface to determine what drivers are installed.
In QNX you query for drivers, exactly as you would for processes, using pidin (you could use ps, but it has a yucky UI).
So, if the driver is a process:
pidin
If the driver is a shared library (DLL) then:
pidin mem (to see DLLs that are mapped into the process)
For example, on my system (QNX running on VMware), I just ran:
I assume you are referring to the case whether the driver is mounted?
Well, since you are volunteering, the source is on F27, so you can add the ability for the mount() handler to stuff the args away somewhere (in a thread_key, might be a good place), and then define an interface by which pidin can retrieve them (a generic ability for pidin to extract arbitrary thread key data would be very useful actually