17 Jan
2012
17 Jan
'12
11:02 p.m.
Ivan Bublikov wrote:
Ivan Bublikov wrote:
My difficulty is how to define a code for my IOCTL and avoid a conflict with the common code in the future.
Pick something not yet allocated in Documentation/ioctl/ioctl-number.txt.
Since half of the lines in it are marked "Conflict!" anyway, should I only pay attention to not conflict with "sound/*" lines?
There are enough free codes so that you do not need to introduce new conflicts.
And then add a new line for my IOCTLs?
Yes.
And should I put my IOCTL definitions in hda_hwdep.h or create a new file?
If you go through the existing HDA hwdep device, your ioctls probably should go into the same header.
Regards, Clemens