lkml.org 
[lkml]   [2000]   [Sep]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC] Wine speedup through kernel module
Date
From

"J. Robert von Behren" <jrvb@cs.berkeley.edu> wrote:
> FWIW, this can be done with relatively low overhead by creating a
> miscelaneous character device, and just using write() to write in the
> arguments. This is a bit worse than passing things through registers,
> but doesn't seem all that bad.

How do you emulate calls that return more than just a single integer? Plus if
you do it that way, someone can play havoc with the system with the cat
command, or if something tries to use the wrong fd.

Far better to use ioctl() I think.

> Nonetheless, having some entries in the syscall table that are
> designated as "dynamically allocatable" would be a nifty trick. If the
> kernel managed these, modules coluld safely grab a few at load time, and
> then declare which indices to use via a /proc file.

My thought exactly, except that you either need one or a great many.

David Howells
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.030 / U:0.072 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site