[parisc-linux] Pb with ioctl and 64bits
Grant Grundler
grundler@dsl2.external.hp.com
Tue, 11 Jun 2002 15:47:09 -0600
Bruno Vidal wrote:
> Haaaaa, I've succeded at the end. Now ioctls are working fine.
Excellent!
> Sorry, I beg your pardon, the probleme was coming from the manner I
> declare my ioctls cmds. With 64bits kernel it is:
> #define DIOSDUMPDEV32 _IOW('p',0xa0,unsigned int)
> And in user space it is (32 bits):
> #define DIOSDUMPDEV32 _IOW('p',0xa0,unsigned long)
shouldn't both kernel and user space use the same definition?
(ie unsigned int)
If they don't, I expect the ioctl wrapper to do some work.
grant