All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Winischhofer <thomas@winischhofer.net>
To: Francois Romieu <romieu@fr.zoreil.com>
Cc: Arjan van de Ven <arjanv@redhat.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: ioctl number 0xF3
Date: Sat, 22 May 2004 17:37:57 +0200	[thread overview]
Message-ID: <40AF73D5.5010202@winischhofer.net> (raw)
In-Reply-To: <20040522163214.A32228@electric-eye.fr.zoreil.com>

Francois Romieu wrote:
 >He can surely tell when an egg stinks. However Arjan is not a chicken.

I didn't mean that as any sort of insult. I am just tired of the XFree86 
people telling me "implement a generic interface". I write one single 
driver and want the users of this driver to have some sort of comfort. 
Waiting until someone comes up with some generic solution (for a design 
of which I don't have time nor the required knowledge about a zillion 
different systems) I am old and grey.


> Thomas Winischhofer <thomas@winischhofer.net> :
>>Is 64 out of, what's that, 65536 too much to ask? Well, I could live 
>>with 32 as well...
>
> Reserving a generous ioctl range without any clear interface will make
> some people nervous. If you can not specify the interface now, try to
> separate the generic/specific part of it and use sub-ioctl for the really
> scary things as it will make the future life easier.
> 
> If you have some pointers to the existing code, that may help too.

Well, before I start implementing it (further), I thought it would be 
smart to be able to rely on certain things. As long as I don't even know 
if I get the numbers I don't write code... but frankly, the current 
development sisfb version available on my website has a very few of the 
intended ioctls already implemented.

The interface I intend to use matches the one the X driver has (using 
the Xv extension as an ioctl replacement) and will be documented. Since 
I develope both the SiS kernel framebuffer driver as well as the SiS X 
driver this will reduce duplicate code and ensures good cooperation. 
Furthermore, there could be a common library for both the framebuffer and X.

Hm. Were the matrox folks asked for a "clear interface" in advance when 
they started using the 'n' ioctls? Am I too polite? ;)

sisfb uses a few ioctls already, as an extension to the generic fb 
related ioctls. (Although the version currently in mainline 2.4 is not 
in any way 32/64 bit safe, and neiter is the mainline 2.6 version yet as 
regards the obviously required ioctl32 emulation stuff - investigating 
this at the moment).

Thomas

-- 
Thomas Winischhofer
Vienna/Austria
thomas AT winischhofer DOT net          http://www.winischhofer.net/
twini AT xfree86 DOT org

  reply	other threads:[~2004-05-22 15:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-22 12:08 ioctl number 0xF3 Thomas Winischhofer
2004-05-22 12:20 ` Arjan van de Ven
2004-05-22 12:39   ` Thomas Winischhofer
2004-05-22 12:51     ` Arjan van de Ven
2004-05-22 13:29       ` Thomas Winischhofer
2004-05-22 14:32         ` Francois Romieu
2004-05-22 15:37           ` Thomas Winischhofer [this message]
2004-05-23  1:35             ` Petr Vandrovec
2004-05-23 23:39             ` Francois Romieu

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=40AF73D5.5010202@winischhofer.net \
    --to=thomas@winischhofer.net \
    --cc=arjanv@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=romieu@fr.zoreil.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.