Re: Where is a reference for ioctl32() usage?

2005-03-18 Thread Arnd Bergmann
On Freedag 18 März 2005 15:53, Alan Kilian wrote:
> I am trying to get my PCI bus device driver running on an Xeon 
> 64-bit FC-3 distribution for the first time. It works fine on a
> 32-bit FC-3 distribution.

You should add a compat_ioctl file operation, see
http://lwn.net/Articles/119652/. If your ioctl handler is
64/32 bit clean, you can have a single function for both
unlocked_ioctl and compat_ioctl.

 Arnd <><
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Where is a reference for ioctl32() usage?

2005-03-18 Thread Alan Kilian


Thanks for all the help in the past, and I'm once again knocking
at your door for more help.

I am trying to get my PCI bus device driver running on an Xeon 
64-bit FC-3 distribution for the first time. It works fine on a
32-bit FC-3 distribution.

I got the compiler warnings all cleaned up, the driver compiles and 
loads, but the test executable which was compiled on a 32-bit FC-3 
distribution is causing these messages in /var/log/messages:

Mar 17 15:42:55 noble kernel: ioctl32(boardtest:3730): 
Unknown cmd fd(3) cmd(8004440e){00} arg(d824) on /dev/sse0
Mar 17 15:42:55 noble kernel: ioctl32(boardtest:3730): 
Unknown cmd fd(3) cmd(8004440e){00} arg(d8c4) on /dev/sse0
Mar 17 15:42:55 noble kernel: ioctl32(boardtest:3730): 
Unknown cmd fd(3) cmd(40044414){00} arg() on /dev/sse0
Mar 17 15:42:55 noble kernel: ioctl32(boardtest:3730): 
Unknown cmd fd(3) cmd(80044403){00} arg(0804f780) on /dev/sse0

It's probably a simple thing to change my ioctl() interface in the
driver, but I googled myself blue in the face, and I didn't find it,
so I come to you, hat-in-hand for help.

Where can I find out how to change my driver so I can have a 32-bit
executable talk to it using ioctl()?

I did change the "type" argument in _IOR and _IOW to uint32_t from
int, but that didn't change things.

-Alan

-- 
- Alan Kilian 


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Where is a reference for ioctl32() usage?

2005-03-18 Thread Alan Kilian


Thanks for all the help in the past, and I'm once again knocking
at your door for more help.

I am trying to get my PCI bus device driver running on an Xeon 
64-bit FC-3 distribution for the first time. It works fine on a
32-bit FC-3 distribution.

I got the compiler warnings all cleaned up, the driver compiles and 
loads, but the test executable which was compiled on a 32-bit FC-3 
distribution is causing these messages in /var/log/messages:

Mar 17 15:42:55 noble kernel: ioctl32(boardtest:3730): 
Unknown cmd fd(3) cmd(8004440e){00} arg(d824) on /dev/sse0
Mar 17 15:42:55 noble kernel: ioctl32(boardtest:3730): 
Unknown cmd fd(3) cmd(8004440e){00} arg(d8c4) on /dev/sse0
Mar 17 15:42:55 noble kernel: ioctl32(boardtest:3730): 
Unknown cmd fd(3) cmd(40044414){00} arg() on /dev/sse0
Mar 17 15:42:55 noble kernel: ioctl32(boardtest:3730): 
Unknown cmd fd(3) cmd(80044403){00} arg(0804f780) on /dev/sse0

It's probably a simple thing to change my ioctl() interface in the
driver, but I googled myself blue in the face, and I didn't find it,
so I come to you, hat-in-hand for help.

Where can I find out how to change my driver so I can have a 32-bit
executable talk to it using ioctl()?

I did change the type argument in _IOR and _IOW to uint32_t from
int, but that didn't change things.

-Alan

-- 
- Alan Kilian kilian(at)bobodyne.com


-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Where is a reference for ioctl32() usage?

2005-03-17 Thread Alan Kilian

Thanks for all the help in the past, and I'm once again knocking
at your door for more help.

I am trying to get my PCI bus device driver running on an Xeon 
64-bit FC-3 distribution.

I got the compiler warnings all cleaned up, the driver compiles and 
loads, but the test executable which was compiled on a 32-bit FC-3 
distribution is causing these messages in /var/log/messages:

Mar 17 15:42:55 noble kernel: ioctl32(boardtest:3730): 
Unknown cmd fd(3) cmd(8004440e){00} arg(d824) on /dev/sse0
Mar 17 15:42:55 noble kernel: ioctl32(boardtest:3730): 
Unknown cmd fd(3) cmd(8004440e){00} arg(d8c4) on /dev/sse0
Mar 17 15:42:55 noble kernel: ioctl32(boardtest:3730): 
Unknown cmd fd(3) cmd(40044414){00} arg() on /dev/sse0
Mar 17 15:42:55 noble kernel: ioctl32(boardtest:3730): 
Unknown cmd fd(3) cmd(80044403){00} arg(0804f780) on /dev/sse0

It's probably a simple thing to change my ioctl() interface in the
driver, but I googled myself blue in the face, and I didn't find it,
so I come to you, hat-in-hand for help.

Where can I find out how to change my driver so I can have a 32-bit
executable talk to it using ioctl()?

I did change the "type" argument in _IOR and _IOW to uint32_t from
int, but that didn't change things.

-Alan

-- 
- Alan Kilian 


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Where is a reference for ioctl32() usage?

2005-03-17 Thread Alan Kilian

Thanks for all the help in the past, and I'm once again knocking
at your door for more help.

I am trying to get my PCI bus device driver running on an Xeon 
64-bit FC-3 distribution.

I got the compiler warnings all cleaned up, the driver compiles and 
loads, but the test executable which was compiled on a 32-bit FC-3 
distribution is causing these messages in /var/log/messages:

Mar 17 15:42:55 noble kernel: ioctl32(boardtest:3730): 
Unknown cmd fd(3) cmd(8004440e){00} arg(d824) on /dev/sse0
Mar 17 15:42:55 noble kernel: ioctl32(boardtest:3730): 
Unknown cmd fd(3) cmd(8004440e){00} arg(d8c4) on /dev/sse0
Mar 17 15:42:55 noble kernel: ioctl32(boardtest:3730): 
Unknown cmd fd(3) cmd(40044414){00} arg() on /dev/sse0
Mar 17 15:42:55 noble kernel: ioctl32(boardtest:3730): 
Unknown cmd fd(3) cmd(80044403){00} arg(0804f780) on /dev/sse0

It's probably a simple thing to change my ioctl() interface in the
driver, but I googled myself blue in the face, and I didn't find it,
so I come to you, hat-in-hand for help.

Where can I find out how to change my driver so I can have a 32-bit
executable talk to it using ioctl()?

I did change the type argument in _IOR and _IOW to uint32_t from
int, but that didn't change things.

-Alan

-- 
- Alan Kilian kilian(at)bobodyne.com


-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/