From: Keith Owens <kaos@ocs.com.au>
To: "Richard J Moore" <richardj_moore@uk.ibm.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Is there any interest in Dynamic API
Date: Thu, 23 Aug 2001 12:44:22 +1000 [thread overview]
Message-ID: <19879.998534662@kao2.melbourne.sgi.com> (raw)
In-Reply-To: Your message of "Wed, 22 Aug 2001 18:44:27 +0100." <OF7D8B08B8.41635C2F-ON80256AB0.0060953B@portsmouth.uk.ibm.com>
On Wed, 22 Aug 2001 18:44:27 +0100,
"Richard J Moore" <richardj_moore@uk.ibm.com> wrote:
>I was wondering whether the kernel community had any interest in seeing a
>dynamic api capability in the kernel. What I have in mind the ability for a
>kernel module to request a system call entry be added by supplying a call
>name to a create_dynamic_api service.
Why does this remind me of SVCUPDTE?
You will have problems on architectures where indirect function calls
require extra handling. IA64 has to load a global data pointer (gp) as
well as the function address for an indirect call. The existing
syscall table avoids this overhead because all system calls are in the
kernel with a constant gp. To allow syscalls to modules you either
load a gp for each entry point (which slows down all syscalls) or you
need arch specific trampoline code to enter and exit a syscall in a
module. PPC64 looks like it has the same problem.
There is also the problem of generating syscalls in userspace pic code.
Each arch is different, look at all the hassles glibc goes through to
create syscall interfaces. It is not surprising that _syscall[0-5] are
deprecated interfaces. It is much easier to use a device or fs interface.
next prev parent reply other threads:[~2001-08-23 2:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-22 17:44 Is there any interest in Dynamic API Richard J Moore
2001-08-22 18:19 ` Alan Cox
2001-08-23 2:44 ` Keith Owens [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-08-23 9:18 Richard J Moore
2001-08-23 9:21 Richard J Moore
2001-08-23 10:13 ` Keith Owens
2001-08-23 11:29 Richard J Moore
2001-08-23 11:55 ` Alexander Viro
2001-08-23 13:58 Richard J Moore
2001-08-23 14:05 ` Keith Owens
2001-08-23 14:23 ` Mike Castle
2001-08-23 20:50 ` Alexander Viro
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19879.998534662@kao2.melbourne.sgi.com \
--to=kaos@ocs.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=richardj_moore@uk.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox