DCMD_CAM_PASS_THRU

Hello,

I am trying to send SCSI command directly to a SCSI device using the CAM
pass-thru interface on QNX 6.1 Patch A. When I do the call, I always receive
an error (22: EINVAL).

Here is the call that I made:
CAM_PASS_THRU cpt;

… /* some SCSI command initilization stuff */

i_ret = devctl(i_fd, DCMD_CAM_PASS_THRU, &cpt, sizeof(cpt), NULL);

Does anybody use this “PASS THRU” interface? Is it the only way to send SCSI
command that are not supported through the CAM interface?

Thank in advance,

Pascal Levesque
Mindready Solutions Inc.