Hi I am getting this error: ioctl: inappropriate ioctl for device on the ioctl() call shown below.
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)
I am not sure how to debug this issue or go about resolving the error.
Any help would be greatly appreciated. Thanks.
That ioctl is only available with TraceFS (a specific filesystem). I assume you need to mount the filesystem as TraceFS to fix the problem.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.