Utilities: gioctl


    (local or remote)

    Usage: gioctl ipaddr [ -p port ] -c channel -i ioctlnum -d databytes...
       ipaddr    IP address; use localhost if running locally on
       port   (not necessary) default = 7000
       channel   communication channel; default = all channels
       ioctlnumIOCTL number to pass to channel
       databytesData to pass with IOCTL
    gioctl sends a channel-specific control message to a channel
    This is a low-level interface to the device driver and is typically not needed for normal use.

    Example:

    bash# gioctl localhost -c 3 -i 0x11200001 -d 0x00 0x00
    
    IOCTL command response: 0 = OK
    IOCTL return data     : 03 1C 
    
    
    In this example, IOCTL number 0x11200001 was passed with two data bytes (both zero) to the device driver for channel 3.
    The device driver returned a success response and two databytes (0x03 0x1C). Note: The specified databytes and the returned databytes MUST BE THE SAME LENGTH.
    When using an IOCTL that returns data, the correct number of databytes must be passed to the gioctl program, even if the IOCTL number requires no input data.