bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/2] Add ioctl-handler interface


From: Carl Fredrik Hammar
Subject: [PATCH 1/2] Add ioctl-handler interface
Date: Wed, 26 Aug 2009 16:21:42 +0200

* hurd/ioctl_handler.defs: New file.
* hurd/subsystems: Add ioctl_handler.
---
 hurd/ioctl_handler.defs |   35 +++++++++++++++++++++++++++++++++++
 hurd/subsystems         |    1 +
 2 files changed, 36 insertions(+), 0 deletions(-)
 create mode 100644 hurd/ioctl_handler.defs

diff --git a/hurd/ioctl_handler.defs b/hurd/ioctl_handler.defs
new file mode 100644
index 0000000..cd59a16
--- /dev/null
+++ b/hurd/ioctl_handler.defs
@@ -0,0 +1,35 @@
+/* Protocol for server provided ioctl handler.
+
+   Written by Carl Fredrik Hammar <hammy.lite@gmail.com>.
+
+   This file is part of the GNU Hurd.
+
+   Copyright (C) 2009 Free Software Foundation, Inc.
+
+   The GNU Hurd is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   The GNU Hurd is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License along
+   with the GNU Hurd; see the file COPYING.  If not, write to the Free
+   Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+   MA 02110-1301 USA.  */
+
+subsystem ioctl_handler 39000;
+
+#ifdef IOCTL_HANDLER_IMPORTS
+IOCTL_HANDLER_IMPORTS
+#endif
+
+#include <hurd/hurd_types.defs>
+
+routine ioctl_handler_get (
+       io: io_t;
+       RPT
+       out handlers: io_t);
diff --git a/hurd/subsystems b/hurd/subsystems
index c05895c..93abe7a 100644
--- a/hurd/subsystems
+++ b/hurd/subsystems
@@ -36,6 +36,7 @@ tape          35000   Special control operations for magtapes
 login          36000   Database of logged-in users
 pfinet         37000   Internet configuration calls
 password       38000   Password checker
+ioctl_handler  39000   Server provided ioctl handler
 <ioctl space>  100000- First subsystem of ioctl class 'f' (lowest class)
 tioctl        156000   Ioctl class 't' (terminals)
 tioctl        156200     (continued)
-- 
1.6.3.3





reply via email to

[Prev in Thread] Current Thread [Next in Thread]