lkml.org 
[lkml]   [2001]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: adding a system call
This can all be done with a device file and a corresponding module to
handle the mmap and any ioctl()'s you may want to support. No need to
add another system call.


BAPper

On Tue, Jan 09, 2001 at 02:17:26PM -0500, Doug McNaught wrote:
> Mihai Moise <mcartoaj@mat.ulaval.ca> writes:
>
> > My system call idea is to allow a superuser process to request a mmap on
> > behalf of an user process. To see how this would be useful, let us consider
> > svgalib.
>
> [...]
>
> > With my new system call, a superuser process can set the graphics mode in a
> > safe manner and then ask for an mmap of the video array into the application
> > data segment.
>
> Ummm, couldn't the the root process open the video device, then pass
> the file descriptor (via AF_UNIX socket) to the user process? The
> user process would then call mmap() on the open file descriptor.
>
> I'm not *completely* sure this would work, but it would avoid creating
> a new system call if so.
>
> -Doug
> -
> 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/
-
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 13:28    [W:0.074 / U:0.836 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site