Re: How does the size field work in IOCTL numbers?

2016-09-03 Thread Peter Zijlstra
On Fri, Sep 02, 2016 at 07:27:27PM -0400, Keno Fischer wrote: > I don't understand what the rule is for what to put in that third > argument, or is it ioctl specific? Please let me know if I missed > something. You can do whatever you like, but everything that is different between ILP32 and LP64

Re: How does the size field work in IOCTL numbers?

2016-09-03 Thread Peter Zijlstra
On Fri, Sep 02, 2016 at 07:27:27PM -0400, Keno Fischer wrote: > I don't understand what the rule is for what to put in that third > argument, or is it ioctl specific? Please let me know if I missed > something. You can do whatever you like, but everything that is different between ILP32 and LP64

How does the size field work in IOCTL numbers?

2016-09-02 Thread Keno Fischer
Hi folks, this is more of a general linux question, but since I noticed it while looking perf_events code, I'm ccing perf_events folks in case the answer is perf_events specific (hope that's ok). uapi/linux/perf_event.h has the following: #define PERF_EVENT_IOC_PERIOD _IOW('$', 4, __u64) #define

How does the size field work in IOCTL numbers?

2016-09-02 Thread Keno Fischer
Hi folks, this is more of a general linux question, but since I noticed it while looking perf_events code, I'm ccing perf_events folks in case the answer is perf_events specific (hope that's ok). uapi/linux/perf_event.h has the following: #define PERF_EVENT_IOC_PERIOD _IOW('$', 4, __u64) #define