[PATCH] ipc/sem: 64bit union semun definition
From: a22017
Date: Tue May 05 2015 - 14:29:31 EST
From: Ling-Juan Sun <a22017@xxxxxxxxxxxx>
The member of semun semid_ds has new definition
semid64_ds for 64bit architectures.
Signed-off-by: Ling-Juan Sun <a22017@xxxxxxxxxxxx>
---
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/