According to the comments in the header, the ENCIOC_GETSTRING ioctl has a IN/OUT bufsiz field. However, it does not set that field on return, leaving the caller unsure of how many bytes were actually transferred. That pretty much makes the ioctl useless.