From: a22017@motorola.com
To: akpm@linux-foundation.org, linux-api@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: Ling-Juan Sun <a22017@motorola.com>
Subject: [PATCH] ipc/sem: 64bit union semun definition
Date: Tue, 5 May 2015 11:28:43 -0700 [thread overview]
Message-ID: <1430850523-7522-1-git-send-email-a22017@motorola.com> (raw)
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
next reply other threads:[~2015-05-05 18:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-05 18:28 a22017 [this message]
2015-05-05 19:37 ` [PATCH] ipc/sem: 64bit union semun definition Arnd Bergmann
[not found] ` <CACwVHNr9K0XXvB8JVEet_OtTRAJmjkHTsKsOc9h5HNts9+X5QA@mail.gmail.com>
2015-05-05 21:40 ` Arnd Bergmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1430850523-7522-1-git-send-email-a22017@motorola.com \
--to=a22017@motorola.com \
--cc=akpm@linux-foundation.org \
--cc=linux-api@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox