[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK8P3a1S65QSRruig+hg_03XbcNges1oR0YWivypvcp7r79Lew@mail.gmail.com>
Date: Wed, 14 Nov 2018 09:15:34 -0800
From: Arnd Bergmann <arnd@...db.de>
To: carlos@...hat.com
Cc: Szabolcs Nagy <Szabolcs.Nagy@....com>,
Dave Martin <Dave.Martin@....com>, dancol@...gle.com,
nd@....com, Florian Weimer <fweimer@...hat.com>,
Michael Kerrisk <mtk.manpages@...il.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Joel Fernandes <joelaf@...gle.com>,
Linux API <linux-api@...r.kernel.org>,
Willy Tarreau <w@....eu>, Vlastimil Babka <vbabka@...e.cz>,
GNU C Library <libc-alpha@...rceware.org>,
Firoz Khan <firoz.khan@...aro.org>
Subject: Re: Official Linux system wrapper library?
On Wed, Nov 14, 2018 at 6:58 AM Carlos O'Donell <carlos@...hat.com> wrote:
> On 11/14/18 6:58 AM, Szabolcs Nagy wrote:
> > an actual proposal in the thread that i think is
> > worth considering is to make the linux syscall
> > design process involve libc devs so the c api is
> > designed together with the syscall abi.
>
> * Programmatic / Machine readable description of syscalls.
> This way the kernel gives users the ability to autogenerate
> all the wrappers *if they want to* in a consistent way that
> matches this syscall description format.
Firoz Khan is in the process of doing part of this, by changing the
in-kernel per-architecture unistd.h and syscall.S files into a
architecture independent machine-readable format that is used to
generate the existing files. The format will be similar to what
we have on arm/s390/x86 in the syscall.tbl files already.
This is of course only part of the picture, it answers the question
of which syscalls are implemented on an architecture, which number
they have and (ideally) whether they use a standard implementation
or a custom one, but it does not yet relate to the prototype.
Once this work is merged, we can follow up by coming up with a
way to add prototypes and enforcing that the user space wrapper
uses the same argument types as the in-kernel entry point.
Arnd
Powered by blists - more mailing lists