[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <47432666.6070503@oracle.com>
Date: Tue, 20 Nov 2007 10:24:38 -0800
From: Zach Brown <zach.brown@...cle.com>
To: "H. Peter Anvin" <hpa@...or.com>
CC: Ulrich Drepper <drepper@...hat.com>,
David Miller <davem@...emloft.net>,
linux-kernel@...r.kernel.org, akpm@...ux-foundation.org,
mingo@...e.hu, tglx@...utronix.de, torvalds@...ux-foundation.org
Subject: Re: [PATCHv4 5/6] Allow setting O_NONBLOCK flag for new sockets
> That's only because you're being, deliberately or accidentally, vague
> about what your actual (as opposed to imagined) requirements are.
Maybe I can help by summarizing how syslets fit in to this.
Currently the syslet patches add a single submission call which includes
an argument which is a structure which duplicates the system call ABI.
The submission syscall in the kernel does some syslet specific work
which amounts to verifying state and storing it in the task_struct. It
then has to unpack the system call arguments from this submission
syscall argument and call the specified system call.
Every architecture will need helpers, then, on either side. They'll
need to pack their arguments into the struct and then unpack and call in
the kernel. The PPC64 guys have already expressed concern about this.
It's, in effect, adding the syslet arguments to every single system call.
So, instead of duplicating the system call ABI in the argument to a
syslet submission syscall, we could pass the syslet arguments via this
indirect parameters convention. This, hopefully, will reduce complexity
by reducing the number of places that we have to muck around with the
sycall ABI.
That's the high level summary, anyway. I'm working on the simplest
expression of this mechanism at the moment. We'll have code to argue
about before the silly thanksgiving break, I hope.
- z
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists