linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ipc/sem: 64bit union semun definition
@ 2015-05-05 18:28 a22017
       [not found] ` <1430850523-7522-1-git-send-email-a22017-3WKxDLwmzFNWk0Htik3J/w@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: a22017 @ 2015-05-05 18:28 UTC (permalink / raw)
  To: akpm, linux-api, linux-kernel; +Cc: Ling-Juan Sun

From: Ling-Juan Sun <a22017@motorola.com>

The member of semun semid_ds has new definition
semid64_ds for 64bit architectures.

Signed-off-by: Ling-Juan Sun <a22017@motorola.com>
---
 include/uapi/linux/sem.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/include/uapi/linux/sem.h b/include/uapi/linux/sem.h
index dd73b90..e9ab2a5 100644
--- a/include/uapi/linux/sem.h
+++ b/include/uapi/linux/sem.h
@@ -50,6 +50,15 @@ union semun {
 	void __user *__pad;
 };
 
+/* arg for semctl 64 bit system calls. */
+union semun64 {
+	int val;			/* value for SETVAL */
+	struct semid64_ds __user *buf;	/* buffer for IPC_STAT & IPC_SET */
+	unsigned short __user *array;	/* array for GETALL & SETALL */
+	struct seminfo __user *__buf;	/* buffer for IPC_INFO */
+	void __user *__pad;
+};
+
 struct  seminfo {
 	int semmap;
 	int semmni;
-- 
2.1.1

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

end of thread, other threads:[~2015-05-05 21:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-05 18:28 [PATCH] ipc/sem: 64bit union semun definition a22017
     [not found] ` <1430850523-7522-1-git-send-email-a22017-3WKxDLwmzFNWk0Htik3J/w@public.gmane.org>
2015-05-05 19:37   ` Arnd Bergmann
     [not found]     ` <CACwVHNr9K0XXvB8JVEet_OtTRAJmjkHTsKsOc9h5HNts9+X5QA@mail.gmail.com>
     [not found]       ` <CACwVHNr9K0XXvB8JVEet_OtTRAJmjkHTsKsOc9h5HNts9+X5QA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-05-05 21:40         ` Arnd Bergmann

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