scsi_util equivalent?

Forgive me if this seems trivial, but I’m struggling with converting my mind
from QNX4 to 6.

Is there a way of scanning the scsi bus and printing to the screen what is
attached to the bus? I used to do this with scsi_util under QNX4, but I
can’t see how to do this now. Similarly, I could use scsi_util to issue an
eject command to an optical disk unit from a shell script. Can I do this
under QNX6?

thanks

Julian Thornhill

Eject is trivial - use devctl() function (grep for DCMD_CAM… in the
headers).
Scanning SCSI bus is not. I suppose there’s a way to do it using
DCMD_CAM_PASSTHRU, but you’ll have to experiment a lot. Or look at the
cdrecord port, it might give some clues.

“Julian Thornhill” <jth@ion.le.ac.uk> wrote in message
news:b54nsi$skr$1@inn.qnx.com

Forgive me if this seems trivial, but I’m struggling with converting my
mind
from QNX4 to 6.

Is there a way of scanning the scsi bus and printing to the screen what is
attached to the bus? I used to do this with scsi_util under QNX4, but I
can’t see how to do this now. Similarly, I could use scsi_util to issue an
eject command to an optical disk unit from a shell script. Can I do this
under QNX6?

thanks

Julian Thornhill