On Aug 23, 07 12:00:39 +0300, Daniel Stone wrote:
> > > If you have ioctl number 32, your next free one is 43, and you want to
> > > change the semantics of UPDATE_WINDOW, then you rename 32 to
> > > UPDATE_WINDOW_OLD, create UPDATE_WINDOW as 43 with the new structure,
> > > and handle both cases.
> > 
> > I consider this giving headaches.
> > I never had any similar issues with a tag-based approach.
> 
> The problem there comes with the added complexity of parsing all the
> data.

Maybe I'm a bit biased (had an Amiga for a long time, and this was the
base argument parsing for OS routines), but it worked astonishingly
well.

> > If every tag is int32 and its parameter int32 as well, this isn't too
> > problematic. Question is whether everything needed can be represented in
> > 32 bit values, strings are a completely different concept and don't
> > match well here, as pointers are probably difficult to handle over the
> > user land / kernel barrier...
> 
> Easy to use, hard to use right.

Right.

Matthias

-- 
Matthias Hopf <[EMAIL PROTECTED]>      __        __   __
Maxfeldstr. 5 / 90409 Nuernberg   (_   | |  (_   |__          [EMAIL PROTECTED]
Phone +49-911-74053-715           __)  |_|  __)  |__  R & D   www.mshopf.de

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to