public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Brian Gerst <bgerst@didntduck.org>
To: Bernhard Ager <ager@in.tum.de>
Cc: vojtech@suse.cz, linux-joystick@atrey.karlin.mff.cuni.cz,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Joystick on amd64 for 32bit programs
Date: Wed, 14 Sep 2005 08:53:14 -0400	[thread overview]
Message-ID: <43281D3A.9080407@didntduck.org> (raw)
In-Reply-To: <20050914100244.GC9770@in.tum.de>

Bernhard Ager wrote:
> Hi,
> 
> the patch below makes the joystick on amd64 work for 32bit
> applications. It was successfully tested by myself with X-Plane [1],
> SilentWings [2], Quake 3 [3] and quite some other applications. 
> 
> How it works: as the parameters in 32bit userspace ioctl are
> compatible with the 64bit kernel, it is sufficient to declare them
> compatible in ia32_ioctl.c. The JSIOCGNAME ioctl causes a problem as
> it encodes the length of the return buffer into the ioctl number. This
> is solved by mapping all of the JSIOCGNAME ioctls to JSIOCGNAME(0).
> 
> Patch is below and works for vanilla kernels at least up to
> 2.6.13.

This patch uses the obsolete method of defining compat ioctls.  The 
joydev ioctls are already fixed (using ->compat_ioctl) in more recent 
kernels.

--
				Brian Gerst

      reply	other threads:[~2005-09-14 12:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-14 10:02 [PATCH] Joystick on amd64 for 32bit programs Bernhard Ager
2005-09-14 12:53 ` Brian Gerst [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43281D3A.9080407@didntduck.org \
    --to=bgerst@didntduck.org \
    --cc=ager@in.tum.de \
    --cc=linux-joystick@atrey.karlin.mff.cuni.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vojtech@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox