Hi all, On Thu, 2005-05-26 at 12:17, Gerd Knorr wrote: > Yes, compat_ioctl is for 32bit apps. Had a quick look at the structs > and they seem to be identical in 32 and 64 bit. I think simply > hooking the ioctl callback into both ioctl and compat_ioctl could do > the trick for the frontend device. I tried to have a look, but .ioctl and .compat_ioctl have different prototypes (I see that .compat_ioctl has the same prototype as .unlocked_ioctl). Anyway, I tried a quick hack without knowing the code, just for fun... And something like the attached patch works for me (2.6.11 kernel on AMD64, and a Skystar2 card). I do not think this is the cleanest possible solution, but with this patch a 32bit dvbtune works: root@host55:/home/luca/src/tmp/dvbtune # file dvbtune32 dvbtune32: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.0, dynamically linked (uses shared libs), not stripped root@host55:/home/luca/src/tmp/dvbtune # ./dvbtune32 -D 2 -f 11919000 -s 27500 -p V -m Using DVB card "ST STV0299 DVB-S", freq=11919000 tuning DVB-S to Freq: 1319000, Pol:V Srate=27500000, 22kHz tone=off, LNB: 2 DISEQC SETTING SUCCEDED Getting frontend status Event: Frequency: 11918985 SymbolRate: 27500000 FEC_inner: 2 Bit error rate: 296 Signal strength: 42307 SNR: 49815 UNC: 0 FE_STATUS: Signal=42956, Verror=0, SNR=49839dB, BlockErrors=0, (S|L|C|V|SY) Signal=42618, Verror=0, SNR=50286dB, BlockErrors=0, (S|L|C|V|SY) Maybe competent people can use this patch as a base for a more correct one. Luca -- _____________________________________________________________________________ Copy this in your signature, if you think it is important: N O W A R ! ! ! -------------- next part -------------- A non-text attachment was scrubbed... Name: compat_ioctl.diff Type: text/x-patch Size: 11077 bytes Desc: not available Url : http://www.linuxtv.org/pipermail/linux-dvb/attachments/20050526/b1785540/compat_ioctl.bin