From d15b2ba9fb94f10236bcae0233f73790f1b58bbb Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 19 Oct 2018 19:47:44 +0100 Subject: [PATCH] kernel: add a generic eject ioctl We'll need this later --- Kernel/include/kernel.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Kernel/include/kernel.h b/Kernel/include/kernel.h index 724b3735..1bbae6e1 100644 --- a/Kernel/include/kernel.h +++ b/Kernel/include/kernel.h @@ -745,7 +745,13 @@ struct s_argblk { #define HDIO_GET_IDENTITY 0x0102 /* Not yet implemented anywhere */ #define BLKFLSBUF 0x4103 /* Use the Linux name */ #define HDIO_RAWCMD 0x4104 /* Issue a raw command, ioctl data - is device dependant ! */ + is device dependent */ +#define HDIO_EJECT 0x0105 /* Request a media eject */ + +/* + * Floppy disk ioctl s0x01Fx (see fdc.h) + */ + /* * Sound ioctls 02xx (see audio.h) */ @@ -771,6 +777,7 @@ struct s_argblk { * Tape ioctls 0x06xx (see tape.h) */ + /* * System info shared with user space */ -- 2.34.1