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

"J. Robert von Behren" <> 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
Please read the FAQ at

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