[Top] [All Lists]

RE: mips kernel 2.6.16rc1 + IET 0.4.13 - /dev/ietctl - ioctl unknown co

To: "Frederic Temporelli" <>, "iet-dev" <>, "linux-mips" <>
Subject: RE: mips kernel 2.6.16rc1 + IET 0.4.13 - /dev/ietctl - ioctl unknown command
From: "Shanthi Kiran Pendyala \(skiranp\)" <>
Date: Wed, 8 Mar 2006 10:18:57 -0800
Original-recipient: rfc822;
Thread-index: AcZC3Be9zDsVQbxHQv2UPWDtxWtjMwAAF3YQ
Thread-topic: mips kernel 2.6.16rc1 + IET 0.4.13 - /dev/ietctl - ioctl unknown command
I have seen such error messages when userspace app is built in 32bit
And kernel is built in 64 bit mode. Does this apply to your setup ?

The way to fix this is to register a ioctl32 conversion routine in
The driver. Google is your friend..


>-----Original Message-----
>[] On Behalf Of 
>Frederic Temporelli
>Sent: Wednesday, March 08, 2006 10:13 AM
>To: iet-dev; linux-mips
>Subject: mips kernel 2.6.16rc1 + IET 0.4.13 - /dev/ietctl - 
>ioctl unknown command
>I would like to report an ioctl issue using IET 0.4.13 (iSCSI 
>target) and kernel 2.6.16-rc1, running on mips / SGI O2
>The driver seems to load nicely, but there was no way to do 
>ioctl on the userspace device /dev/ietctl.
>I got such messages in syslog:
>Mar  4 16:47:16 o2 kernel: [4303606.514000] 
>ioctl32(ietd:3448): Unknown cmd fd(4) cmd(81046900){01} 
>arg(7f942ab0) on /dev/ietctl
>=> I've been able to resolve the issue by adding a by-pass (goto
>do_ioctl) in kernel compat_sys_ioctl function (fs/compat.c)  
>and all is working fine now.
>I don't know if such issue is related to mips only or is due to changes
>2.6.16 kernel
>I've also did some tries on x86 with linux, all was 
>working fine without needing to change anything in the kernel.
>Did somebody report such issue with IET and recent kernel ?
>May some people from linux-mips tell if such issue is mips specific ?
>Best regards.
>No virus found in this outgoing message.
>Checked by AVG Free Edition.
>Version: 7.1.375 / Virus Database: 268.2.1/277 - Release Date: 

<Prev in Thread] Current Thread [Next in Thread>