Linux-streams registration 2.5.46
PATCH 1/1 Linux-streams registration 2.5.46
Resend:
I just checked the source for 2.5.48 and did not see this patch. Is someone going to put it in soon?
Thanks,
Dave
----------------------------
All:
I finally have LiS running on a 2.5 kernel. Attached is the 2.5.46 version of the syscall registration patch that was submitted for inclusion in the 2.4 kernel about a month ago. It has been tested on an Intel platform.
The patch follows inline for easy perusal and is attached as a file for tab-preservation.
Comments welcome. If it looks good will someone tell me to whom to direct it for inclusion in the kernel source?
Thanks,
-- Dave
i386/kernel/entry.S 2002-11-06 16:28:23.000000000 -0600 renamed from i386/kernel/entry.S.orig 2002-11-06 16:09:44.000000000 -0600 +2 -2
@@ -671,8 +671,8 @@ .long sys_capset /* 185 */ .long sys_sigaltstack .long sys_sendfile - .long sys_ni_syscall /* reserved for streams1 */ - .long sys_ni_syscall /* reserved for streams2 */ + .long sys_getpmsg /* streams1 */ + .long sys_putpmsg /* streams2 */ .long sys_vfork /* 190 */ .long sys_getrlimit .long sys_mmap2
sys.c 2002-11-06 16:30:46.000000000 -0600 renamed from sys.c.orig 2002-11-06 16:09:57.000000000 -0600 +44 -0
53 lines not on this page · raw message
linux/sys.h 2002-11-06 16:29:16.000000000 -0600 renamed from linux/sys.h.orig 2002-11-06 16:10:10.000000000 -0600 +12 -0
@@ -27,4 +27,16 @@ * These are system calls that haven't been implemented yet * but have an entry in the table for future expansion.. */ + +/* + * These are registration routines for system calls that are + * implemented by loadable modules outside of the kernel + * source tree. + */ +#if !defined(__ASSEMBLY__) +extern int +register_streams_calls(int (*putpmsg) (int, void *, void *, int, int), + int (*getpmsg) (int, void *, void *, int, int)) ; + +#endif /* __ASSEMBLY__ */ #endif
i386/kernel/entry.S renamed from i386/kernel/entry.S.orig +2 -2
@@ -671,8 +671,8 @@ .long sys_capset /* 185 */ .long sys_sigaltstack .long sys_sendfile - .long sys_ni_syscall /* reserved for streams1 */ - .long sys_ni_syscall /* reserved for streams2 */ + .long sys_getpmsg /* streams1 */ + .long sys_putpmsg /* streams2 */ .long sys_vfork /* 190 */ .long sys_getrlimit .long sys_mmap2
sys.c renamed from sys.c.orig +44 -0
53 lines not on this page · raw message
linux/sys.h renamed from linux/sys.h.orig +12 -0
@@ -27,4 +27,16 @@* These are system calls that haven't been implemented yet * but have an entry in the table for future expansion.. */ + +/* +* These are registration routines for system calls that are +* implemented by loadable modules outside of the kernel +* source tree. +*/ +#if !defined(__ASSEMBLY__) +extern int +register_streams_calls (int (*putpmsg) (int ,void *,void *,int ,int ), +int (*getpmsg) (int ,void *,void *,int ,int )) ; + +#endif /* __ASSEMBLY__ */ #endif