|Think about Loose Coupling|
Re^3: How to do ioctl?by morgon (Curate)
|on May 16, 2014 at 07:55 UTC||Need Help??|
I've tried the following:
And sure enough it prints:
So for whatever reason there is a mismatch.
If I don't use the .ph-files but simply do ioctl $dev, 1074021776, 1;it works.
So it seems the problem lies with h2ph....
The way I generated the phs was I went to /usr/include and from there I issued "h2ph -a -d <some output-dir> linux/input.h"
Was that the wrong way to do it? And is it normal that I have to do that on my own (as I said I installed via perlbrew and there were no .phs generated then?
But at least I know how to do it now...