linux-arch.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] asm-generic/unistd.h: support new process_vm_{readv,write} syscalls
@ 2011-12-01 17:54 Chris Metcalf
  2011-12-01 17:54 ` Chris Metcalf
  2011-12-01 22:48 ` Arnd Bergmann
  0 siblings, 2 replies; 4+ messages in thread
From: Chris Metcalf @ 2011-12-01 17:54 UTC (permalink / raw)
  To: linux-kernel, Arnd Bergmann, Andrew Morton, J. Bruce Fields,
	NeilBrown, Stephen Rothwell, linux-arch

Also prototype the "compat" functions so they can be referenced
from C code.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
---
 include/asm-generic/unistd.h |    8 +++++++-
 include/linux/compat.h       |    9 +++++++++
 2 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/include/asm-generic/unistd.h b/include/asm-generic/unistd.h
index f4c38d8..2292d1a 100644
--- a/include/asm-generic/unistd.h
+++ b/include/asm-generic/unistd.h
@@ -685,9 +685,15 @@ __SYSCALL(__NR_syncfs, sys_syncfs)
 __SYSCALL(__NR_setns, sys_setns)
 #define __NR_sendmmsg 269
 __SC_COMP(__NR_sendmmsg, sys_sendmmsg, compat_sys_sendmmsg)
+#define __NR_process_vm_readv 270
+__SC_COMP(__NR_process_vm_readv, sys_process_vm_readv, \
+          compat_sys_process_vm_readv)
+#define __NR_process_vm_writev 271
+__SC_COMP(__NR_process_vm_writev, sys_process_vm_writev, \
+          compat_sys_process_vm_writev)
 
 #undef __NR_syscalls
-#define __NR_syscalls 270
+#define __NR_syscalls 272
 
 /*
  * All syscalls below here should go away really,
diff --git a/include/linux/compat.h b/include/linux/compat.h
index 154bf56..66ed067 100644
--- a/include/linux/compat.h
+++ b/include/linux/compat.h
@@ -552,5 +552,14 @@ extern ssize_t compat_rw_copy_check_uvector(int type,
 
 extern void __user *compat_alloc_user_space(unsigned long len);
 
+asmlinkage ssize_t compat_sys_process_vm_readv(compat_pid_t pid,
+		const struct compat_iovec __user *lvec,
+		unsigned long liovcnt, const struct compat_iovec __user *rvec,
+		unsigned long riovcnt, unsigned long flags);
+asmlinkage ssize_t compat_sys_process_vm_writev(compat_pid_t pid,
+		const struct compat_iovec __user *lvec,
+		unsigned long liovcnt, const struct compat_iovec __user *rvec,
+		unsigned long riovcnt, unsigned long flags);
+
 #endif /* CONFIG_COMPAT */
 #endif /* _LINUX_COMPAT_H */
-- 
1.6.5.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] asm-generic/unistd.h: support new process_vm_{readv,write} syscalls
  2011-12-01 17:54 [PATCH] asm-generic/unistd.h: support new process_vm_{readv,write} syscalls Chris Metcalf
@ 2011-12-01 17:54 ` Chris Metcalf
  2011-12-01 22:48 ` Arnd Bergmann
  1 sibling, 0 replies; 4+ messages in thread
From: Chris Metcalf @ 2011-12-01 17:54 UTC (permalink / raw)
  To: linux-kernel, Arnd Bergmann, Andrew Morton, J. Bruce Fields,
	NeilBrown, Stephen Rothwell, linux-arch

Also prototype the "compat" functions so they can be referenced
from C code.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
---
 include/asm-generic/unistd.h |    8 +++++++-
 include/linux/compat.h       |    9 +++++++++
 2 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/include/asm-generic/unistd.h b/include/asm-generic/unistd.h
index f4c38d8..2292d1a 100644
--- a/include/asm-generic/unistd.h
+++ b/include/asm-generic/unistd.h
@@ -685,9 +685,15 @@ __SYSCALL(__NR_syncfs, sys_syncfs)
 __SYSCALL(__NR_setns, sys_setns)
 #define __NR_sendmmsg 269
 __SC_COMP(__NR_sendmmsg, sys_sendmmsg, compat_sys_sendmmsg)
+#define __NR_process_vm_readv 270
+__SC_COMP(__NR_process_vm_readv, sys_process_vm_readv, \
+          compat_sys_process_vm_readv)
+#define __NR_process_vm_writev 271
+__SC_COMP(__NR_process_vm_writev, sys_process_vm_writev, \
+          compat_sys_process_vm_writev)
 
 #undef __NR_syscalls
-#define __NR_syscalls 270
+#define __NR_syscalls 272
 
 /*
  * All syscalls below here should go away really,
diff --git a/include/linux/compat.h b/include/linux/compat.h
index 154bf56..66ed067 100644
--- a/include/linux/compat.h
+++ b/include/linux/compat.h
@@ -552,5 +552,14 @@ extern ssize_t compat_rw_copy_check_uvector(int type,
 
 extern void __user *compat_alloc_user_space(unsigned long len);
 
+asmlinkage ssize_t compat_sys_process_vm_readv(compat_pid_t pid,
+		const struct compat_iovec __user *lvec,
+		unsigned long liovcnt, const struct compat_iovec __user *rvec,
+		unsigned long riovcnt, unsigned long flags);
+asmlinkage ssize_t compat_sys_process_vm_writev(compat_pid_t pid,
+		const struct compat_iovec __user *lvec,
+		unsigned long liovcnt, const struct compat_iovec __user *rvec,
+		unsigned long riovcnt, unsigned long flags);
+
 #endif /* CONFIG_COMPAT */
 #endif /* _LINUX_COMPAT_H */
-- 
1.6.5.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] asm-generic/unistd.h: support new process_vm_{readv,write} syscalls
  2011-12-01 17:54 [PATCH] asm-generic/unistd.h: support new process_vm_{readv,write} syscalls Chris Metcalf
  2011-12-01 17:54 ` Chris Metcalf
@ 2011-12-01 22:48 ` Arnd Bergmann
  2011-12-02 15:11   ` Chris Metcalf
  1 sibling, 1 reply; 4+ messages in thread
From: Arnd Bergmann @ 2011-12-01 22:48 UTC (permalink / raw)
  To: Chris Metcalf
  Cc: linux-kernel, Andrew Morton, J. Bruce Fields, NeilBrown,
	Stephen Rothwell, linux-arch

On Thursday 01 December 2011 12:54:31 Chris Metcalf wrote:
> Also prototype the "compat" functions so they can be referenced
> from C code.
> 
> Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
> ---
>  include/asm-generic/unistd.h |    8 +++++++-
>  include/linux/compat.h       |    9 +++++++++
>  2 files changed, 16 insertions(+), 1 deletions(-)

Acked-by: Arnd Bergmann <arnd@arndb.de>

Chris, I don't have any other patches for asm-generic right now. Can you handle
this through the tile tree?

	Arnd

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] asm-generic/unistd.h: support new process_vm_{readv,write} syscalls
  2011-12-01 22:48 ` Arnd Bergmann
@ 2011-12-02 15:11   ` Chris Metcalf
  0 siblings, 0 replies; 4+ messages in thread
From: Chris Metcalf @ 2011-12-02 15:11 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: linux-kernel, Andrew Morton, J. Bruce Fields, NeilBrown,
	Stephen Rothwell, linux-arch

On 12/1/2011 5:48 PM, Arnd Bergmann wrote:
> On Thursday 01 December 2011 12:54:31 Chris Metcalf wrote:
>> Also prototype the "compat" functions so they can be referenced
>> from C code.
>>
>> Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
>> ---
>>  include/asm-generic/unistd.h |    8 +++++++-
>>  include/linux/compat.h       |    9 +++++++++
>>  2 files changed, 16 insertions(+), 1 deletions(-)
> Acked-by: Arnd Bergmann <arnd@arndb.de>
>
> Chris, I don't have any other patches for asm-generic right now. Can you handle
> this through the tile tree?

I will.

-- 
Chris Metcalf, Tilera Corp.
http://www.tilera.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-12-02 15:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-01 17:54 [PATCH] asm-generic/unistd.h: support new process_vm_{readv,write} syscalls Chris Metcalf
2011-12-01 17:54 ` Chris Metcalf
2011-12-01 22:48 ` Arnd Bergmann
2011-12-02 15:11   ` Chris Metcalf

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).