[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [5271] Add MTIOCTOP, MTIOCGET and MTIOCPOS ioctls (Kirill S
From: |
Andrzej Zaborowski |
Subject: |
[Qemu-devel] [5271] Add MTIOCTOP, MTIOCGET and MTIOCPOS ioctls (Kirill Shutemov). |
Date: |
Sat, 20 Sep 2008 03:03:10 +0000 |
Revision: 5271
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5271
Author: balrog
Date: 2008-09-20 03:03:09 +0000 (Sat, 20 Sep 2008)
Log Message:
-----------
Add MTIOCTOP, MTIOCGET and MTIOCPOS ioctls (Kirill Shutemov).
Signed-off-by: Kirill A. Shutemov <address@hidden>
Modified Paths:
--------------
trunk/linux-user/ioctls.h
trunk/linux-user/syscall.c
trunk/linux-user/syscall_defs.h
trunk/linux-user/syscall_types.h
Modified: trunk/linux-user/ioctls.h
===================================================================
--- trunk/linux-user/ioctls.h 2008-09-20 02:29:38 UTC (rev 5270)
+++ trunk/linux-user/ioctls.h 2008-09-20 03:03:09 UTC (rev 5271)
@@ -310,3 +310,7 @@
IOCTL(LOOP_GET_STATUS64, IOC_W, MK_PTR(MK_STRUCT(STRUCT_loop_info64)))
#endif
IOCTL(LOOP_CHANGE_FD, 0, TYPE_INT)
+
+ IOCTL(MTIOCTOP, IOC_W, MK_PTR(MK_STRUCT(STRUCT_mtop)))
+ IOCTL(MTIOCGET, IOC_R, MK_PTR(MK_STRUCT(STRUCT_mtget)))
+ IOCTL(MTIOCPOS, IOC_R, MK_PTR(MK_STRUCT(STRUCT_mtpos)))
Modified: trunk/linux-user/syscall.c
===================================================================
--- trunk/linux-user/syscall.c 2008-09-20 02:29:38 UTC (rev 5270)
+++ trunk/linux-user/syscall.c 2008-09-20 03:03:09 UTC (rev 5271)
@@ -70,6 +70,7 @@
#include <linux/hdreg.h>
#include <linux/soundcard.h>
#include <linux/kd.h>
+#include <linux/mtio.h>
#include "linux_loop.h"
#include "qemu.h"
Modified: trunk/linux-user/syscall_defs.h
===================================================================
--- trunk/linux-user/syscall_defs.h 2008-09-20 02:29:38 UTC (rev 5270)
+++ trunk/linux-user/syscall_defs.h 2008-09-20 03:03:09 UTC (rev 5271)
@@ -1923,6 +1923,10 @@
#define TARGET_VFAT_IOCTL_READDIR_BOTH TARGET_IORU('r', 1)
#define TARGET_VFAT_IOCTL_READDIR_SHORT TARGET_IORU('r', 2)
+#define TARGET_MTIOCTOP TARGET_IOW('m', 1, struct mtop)
+#define TARGET_MTIOCGET TARGET_IOR('m', 2, struct mtget)
+#define TARGET_MTIOCPOS TARGET_IOR('m', 3, struct mtpos)
+
struct target_sysinfo {
abi_long uptime; /* Seconds since boot */
abi_ulong loads[3]; /* 1, 5, and 15 minute load averages */
Modified: trunk/linux-user/syscall_types.h
===================================================================
--- trunk/linux-user/syscall_types.h 2008-09-20 02:29:38 UTC (rev 5270)
+++ trunk/linux-user/syscall_types.h 2008-09-20 03:03:09 UTC (rev 5271)
@@ -108,3 +108,9 @@
MK_ARRAY(TYPE_CHAR, 64), /* lo_crypt_name */
MK_ARRAY(TYPE_CHAR, 32), /* lo_encrypt_key */
MK_ARRAY(TYPE_ULONGLONG, 2)) /* lo_init */
+
+/* mag tape ioctls */
+STRUCT(mtop, TYPE_SHORT, TYPE_INT)
+STRUCT(mtget, TYPE_LONG, TYPE_LONG, TYPE_LONG, TYPE_LONG, TYPE_LONG,
+ TYPE_INT, TYPE_INT)
+STRUCT(mtpos, TYPE_LONG)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [5271] Add MTIOCTOP, MTIOCGET and MTIOCPOS ioctls (Kirill Shutemov).,
Andrzej Zaborowski <=