Fix the cffi usage, initialize the struct as necessary, pass it to ioctl correctly.