AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only

MTIOCGET ioctl call is failing

  • 1.  MTIOCGET ioctl call is failing

    Posted Wed December 16, 2009 02:00 AM

    Originally posted by: OPK


    Hi ,

    Actually I need to get the sense information after my read system call fails for that I am calling ioctl with MTIOCGET
    MTIOCGET ioctl call is failing with Invalid argument.The call is like

    struct mtget mtgetbuf;
    (ioctl (fd,MTIOCGET , &mtgetbuf)

    Anyone knows the reason/cause.

    Thanks in advance.
    #AIX-Forum