* [PATCH] powerpc: Reserve syscall number 319
@ 2008-09-02 5:48 Benjamin Herrenschmidt
2008-09-02 12:08 ` Josh Boyer
2008-09-02 18:06 ` Olof Johansson
0 siblings, 2 replies; 11+ messages in thread
From: Benjamin Herrenschmidt @ 2008-09-02 5:48 UTC (permalink / raw)
To: linuxppc-dev
Some stuff I'm working on that isn't released yet needs
a syscall number but I can't say what it's for until I
get permission to release it :-)
In the meantime, it would be nice if a number could be set
aside so the tools being developped to use that stuff don't
all need to be updated when things are eventually released.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
I wonder if I'll get hanged for that one :-)
arch/powerpc/include/asm/systbl.h | 1 +
arch/powerpc/include/asm/unistd.h | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
--- linux-work.orig/arch/powerpc/include/asm/systbl.h 2008-09-02 15:14:53.000000000 +1000
+++ linux-work/arch/powerpc/include/asm/systbl.h 2008-09-02 15:14:54.000000000 +1000
@@ -322,3 +322,4 @@ SYSCALL_SPU(epoll_create1)
SYSCALL_SPU(dup3)
SYSCALL_SPU(pipe2)
SYSCALL(inotify_init1)
+SYSCALL(ni_syscall)
Index: linux-work/arch/powerpc/include/asm/unistd.h
===================================================================
--- linux-work.orig/arch/powerpc/include/asm/unistd.h 2008-09-02 15:11:55.000000000 +1000
+++ linux-work/arch/powerpc/include/asm/unistd.h 2008-09-02 15:14:42.000000000 +1000
@@ -341,10 +341,11 @@
#define __NR_dup3 316
#define __NR_pipe2 317
#define __NR_inotify_init1 318
+/* 319 is reserved */
#ifdef __KERNEL__
-#define __NR_syscalls 319
+#define __NR_syscalls 320
#define __NR__exit __NR_exit
#define NR_syscalls __NR_syscalls
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] powerpc: Reserve syscall number 319
2008-09-02 5:48 [PATCH] powerpc: Reserve syscall number 319 Benjamin Herrenschmidt
@ 2008-09-02 12:08 ` Josh Boyer
2008-09-02 21:02 ` Benjamin Herrenschmidt
2008-09-02 18:06 ` Olof Johansson
1 sibling, 1 reply; 11+ messages in thread
From: Josh Boyer @ 2008-09-02 12:08 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: linuxppc-dev
On Tue, Sep 02, 2008 at 03:48:45PM +1000, Benjamin Herrenschmidt wrote:
>Some stuff I'm working on that isn't released yet needs
>a syscall number but I can't say what it's for until I
>get permission to release it :-)
>
>In the meantime, it would be nice if a number could be set
>aside so the tools being developped to use that stuff don't
>all need to be updated when things are eventually released.
>
>Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
>---
>
>I wonder if I'll get hanged for that one :-)
Is it a powerpc-specific syscall? If so... ew?
josh
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] powerpc: Reserve syscall number 319
2008-09-02 12:08 ` Josh Boyer
@ 2008-09-02 21:02 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 11+ messages in thread
From: Benjamin Herrenschmidt @ 2008-09-02 21:02 UTC (permalink / raw)
To: Josh Boyer; +Cc: linuxppc-dev
On Tue, 2008-09-02 at 08:08 -0400, Josh Boyer wrote:
> On Tue, Sep 02, 2008 at 03:48:45PM +1000, Benjamin Herrenschmidt wrote:
> >Some stuff I'm working on that isn't released yet needs
> >a syscall number but I can't say what it's for until I
> >get permission to release it :-)
> >
> >In the meantime, it would be nice if a number could be set
> >aside so the tools being developped to use that stuff don't
> >all need to be updated when things are eventually released.
> >
> >Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> >---
> >
> >I wonder if I'll get hanged for that one :-)
>
> Is it a powerpc-specific syscall? If so... ew?
Yes :-)
Ben.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] powerpc: Reserve syscall number 319
2008-09-02 5:48 [PATCH] powerpc: Reserve syscall number 319 Benjamin Herrenschmidt
2008-09-02 12:08 ` Josh Boyer
@ 2008-09-02 18:06 ` Olof Johansson
2008-09-02 21:06 ` Benjamin Herrenschmidt
1 sibling, 1 reply; 11+ messages in thread
From: Olof Johansson @ 2008-09-02 18:06 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: linuxppc-dev
On Tue, Sep 02, 2008 at 03:48:45PM +1000, Benjamin Herrenschmidt wrote:
> Some stuff I'm working on that isn't released yet needs
> a syscall number but I can't say what it's for until I
> get permission to release it :-)
>
> In the meantime, it would be nice if a number could be set
> aside so the tools being developped to use that stuff don't
> all need to be updated when things are eventually released.
>
> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> ---
>
> I wonder if I'll get hanged for that one :-)
Yes. Merge your code or live with the pain of things changing
underneath. Period.
-Olof
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] powerpc: Reserve syscall number 319
2008-09-02 18:06 ` Olof Johansson
@ 2008-09-02 21:06 ` Benjamin Herrenschmidt
2008-09-02 21:30 ` Olof Johansson
2008-09-02 23:46 ` Christoph Hellwig
0 siblings, 2 replies; 11+ messages in thread
From: Benjamin Herrenschmidt @ 2008-09-02 21:06 UTC (permalink / raw)
To: Olof Johansson; +Cc: linuxppc-dev
On Tue, 2008-09-02 at 13:06 -0500, Olof Johansson wrote:
> On Tue, Sep 02, 2008 at 03:48:45PM +1000, Benjamin Herrenschmidt wrote:
> > Some stuff I'm working on that isn't released yet needs
> > a syscall number but I can't say what it's for until I
> > get permission to release it :-)
> >
> > In the meantime, it would be nice if a number could be set
> > aside so the tools being developped to use that stuff don't
> > all need to be updated when things are eventually released.
> >
> > Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> > ---
> >
> > I wonder if I'll get hanged for that one :-)
>
> Yes. Merge your code or live with the pain of things changing
> underneath. Period.
Pain isn't for me :-) It's for those writing userspace stuff based on
my kernel changing all the time :-)
Ben.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] powerpc: Reserve syscall number 319
2008-09-02 21:06 ` Benjamin Herrenschmidt
@ 2008-09-02 21:30 ` Olof Johansson
2008-09-02 21:49 ` Benjamin Herrenschmidt
2008-09-02 23:46 ` Christoph Hellwig
1 sibling, 1 reply; 11+ messages in thread
From: Olof Johansson @ 2008-09-02 21:30 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: linuxppc-dev
On Wed, Sep 03, 2008 at 07:06:15AM +1000, Benjamin Herrenschmidt wrote:
> On Tue, 2008-09-02 at 13:06 -0500, Olof Johansson wrote:
> > On Tue, Sep 02, 2008 at 03:48:45PM +1000, Benjamin Herrenschmidt wrote:
> > > Some stuff I'm working on that isn't released yet needs
> > > a syscall number but I can't say what it's for until I
> > > get permission to release it :-)
> > >
> > > In the meantime, it would be nice if a number could be set
> > > aside so the tools being developped to use that stuff don't
> > > all need to be updated when things are eventually released.
> > >
> > > Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> > > ---
> > >
> > > I wonder if I'll get hanged for that one :-)
> >
> > Yes. Merge your code or live with the pain of things changing
> > underneath. Period.
>
> Pain isn't for me :-) It's for those writing userspace stuff based on
> my kernel changing all the time :-)
Lame excuse. Merge the code.
-Olof
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] powerpc: Reserve syscall number 319
2008-09-02 21:30 ` Olof Johansson
@ 2008-09-02 21:49 ` Benjamin Herrenschmidt
2008-09-02 22:12 ` Olof Johansson
0 siblings, 1 reply; 11+ messages in thread
From: Benjamin Herrenschmidt @ 2008-09-02 21:49 UTC (permalink / raw)
To: Olof Johansson; +Cc: linuxppc-dev
On Tue, 2008-09-02 at 16:30 -0500, Olof Johansson wrote:
> On Wed, Sep 03, 2008 at 07:06:15AM +1000, Benjamin Herrenschmidt wrote:
> > On Tue, 2008-09-02 at 13:06 -0500, Olof Johansson wrote:
> > > On Tue, Sep 02, 2008 at 03:48:45PM +1000, Benjamin Herrenschmidt wrote:
> > > > Some stuff I'm working on that isn't released yet needs
> > > > a syscall number but I can't say what it's for until I
> > > > get permission to release it :-)
> > > >
> > > > In the meantime, it would be nice if a number could be set
> > > > aside so the tools being developped to use that stuff don't
> > > > all need to be updated when things are eventually released.
> > > >
> > > > Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> > > > ---
> > > >
> > > > I wonder if I'll get hanged for that one :-)
> > >
> > > Yes. Merge your code or live with the pain of things changing
> > > underneath. Period.
> >
> > Pain isn't for me :-) It's for those writing userspace stuff based on
> > my kernel changing all the time :-)
>
> Lame excuse. Merge the code.
man, you know as well as I do I can't do that before the lawyers let
me :-)
Ben.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] powerpc: Reserve syscall number 319
2008-09-02 21:49 ` Benjamin Herrenschmidt
@ 2008-09-02 22:12 ` Olof Johansson
2008-09-02 22:49 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 11+ messages in thread
From: Olof Johansson @ 2008-09-02 22:12 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: linuxppc-dev
On Wed, Sep 03, 2008 at 07:49:10AM +1000, Benjamin Herrenschmidt wrote:
> On Tue, 2008-09-02 at 16:30 -0500, Olof Johansson wrote:
> > On Wed, Sep 03, 2008 at 07:06:15AM +1000, Benjamin Herrenschmidt wrote:
> > > On Tue, 2008-09-02 at 13:06 -0500, Olof Johansson wrote:
> > > > On Tue, Sep 02, 2008 at 03:48:45PM +1000, Benjamin Herrenschmidt wrote:
> > > > > Some stuff I'm working on that isn't released yet needs
> > > > > a syscall number but I can't say what it's for until I
> > > > > get permission to release it :-)
> > > > >
> > > > > In the meantime, it would be nice if a number could be set
> > > > > aside so the tools being developped to use that stuff don't
> > > > > all need to be updated when things are eventually released.
> > > > >
> > > > > Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> > > > > ---
> > > > >
> > > > > I wonder if I'll get hanged for that one :-)
> > > >
> > > > Yes. Merge your code or live with the pain of things changing
> > > > underneath. Period.
> > >
> > > Pain isn't for me :-) It's for those writing userspace stuff based on
> > > my kernel changing all the time :-)
> >
> > Lame excuse. Merge the code.
>
> man, you know as well as I do I can't do that before the lawyers let
> me :-)
Then don't try to reserve a system call to be used only by an out-of-tree,
proprietary kernel extension. Which your kernel change in essence is
until it's released.
Would we accept a system call number reservation that was submitted by,
say, nVidia? No? Well, there you go.
It's really that simple.
-Olof
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] powerpc: Reserve syscall number 319
2008-09-02 22:12 ` Olof Johansson
@ 2008-09-02 22:49 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 11+ messages in thread
From: Benjamin Herrenschmidt @ 2008-09-02 22:49 UTC (permalink / raw)
To: Olof Johansson; +Cc: linuxppc-dev
> Then don't try to reserve a system call to be used only by an out-of-tree,
> proprietary kernel extension. Which your kernel change in essence is
> until it's released.
>
> Would we accept a system call number reservation that was submitted by,
> say, nVidia? No? Well, there you go.
>
> It's really that simple.
Well, except that nvidia has no intention to release :-)
Anyway, it's a moot point, I have the answer I needed...
Cheers,
Ben.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] powerpc: Reserve syscall number 319
2008-09-02 21:06 ` Benjamin Herrenschmidt
2008-09-02 21:30 ` Olof Johansson
@ 2008-09-02 23:46 ` Christoph Hellwig
2008-09-03 0:58 ` Benjamin Herrenschmidt
1 sibling, 1 reply; 11+ messages in thread
From: Christoph Hellwig @ 2008-09-02 23:46 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: Olof Johansson, linuxppc-dev
On Wed, Sep 03, 2008 at 07:06:15AM +1000, Benjamin Herrenschmidt wrote:
> > Yes. Merge your code or live with the pain of things changing
> > underneath. Period.
>
> Pain isn't for me :-) It's for those writing userspace stuff based on
> my kernel changing all the time :-)
They can wait until it's released. And there's of course no guarantee
that your syscall will stand public review.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH] powerpc: Reserve syscall number 319
2008-09-02 23:46 ` Christoph Hellwig
@ 2008-09-03 0:58 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 11+ messages in thread
From: Benjamin Herrenschmidt @ 2008-09-03 0:58 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: Olof Johansson, linuxppc-dev
On Wed, 2008-09-03 at 01:46 +0200, Christoph Hellwig wrote:
> On Wed, Sep 03, 2008 at 07:06:15AM +1000, Benjamin Herrenschmidt wrote:
> > > Yes. Merge your code or live with the pain of things changing
> > > underneath. Period.
> >
> > Pain isn't for me :-) It's for those writing userspace stuff based on
> > my kernel changing all the time :-)
>
> They can wait until it's released. And there's of course no guarantee
> that your syscall will stand public review.
Yup. Definitely. I'm not even 100% sure we'll stick to a syscall in
the long run. In the meantime, for internal purposes, it's easy enough
to use an unused number to avoid further changes or stick a trampoline
in the vdso :-)
Cheers,
Ben.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2008-09-03 0:59 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-02 5:48 [PATCH] powerpc: Reserve syscall number 319 Benjamin Herrenschmidt
2008-09-02 12:08 ` Josh Boyer
2008-09-02 21:02 ` Benjamin Herrenschmidt
2008-09-02 18:06 ` Olof Johansson
2008-09-02 21:06 ` Benjamin Herrenschmidt
2008-09-02 21:30 ` Olof Johansson
2008-09-02 21:49 ` Benjamin Herrenschmidt
2008-09-02 22:12 ` Olof Johansson
2008-09-02 22:49 ` Benjamin Herrenschmidt
2008-09-02 23:46 ` Christoph Hellwig
2008-09-03 0:58 ` Benjamin Herrenschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).