Hi I am getting this error: ioctl: inappropriate ioctl for device on the ioctl() call shown below.
I am not sure how to debug this issue or go about resolving the error.Code:
fd = open(mount, O_RDONLY);
destid = ioctl(fd, TRACEFS_IOCTL_ADD_OUTPUT_DRIVERS, data);
#define IOCBASE 10
#define TRACEFS_IOCTL_ADD_OUTPUT_DRIVERS _IOW(0x15, IOCBASE + 0, int)
Any help would be greatly appreciated. Thanks.