procedure for creating new ioctl?

From: Joseph Cheek (joseph@cheek.com)
Date: Mon Jun 10 2002 - 13:09:19 EST


hi all,

i'd like to create a new ioctl for use in my kernels [actually i already
have 8-)] but want to make sure that i follow any established procedure
for creating it before requesting it be included in the kernel.
 specifically, is there a way to ensure the ioctl number i use isn't in
use by anyone else? is there a central registry?

so far i've just picked an arbitrary number:

sanfrancisco:/usr/src/linux-2.4.17/include/linux# diff -Naur kd.h{.orig,}
--- kd.h.orig Mon Jun 10 11:08:22 2002
+++ kd.h Thu Jun 6 16:00:33 2002
@@ -177,4 +177,6 @@
    don't reuse for the time being */
 /* note: 0x4B60-0x4B6D, 0x4B70-0x4B72 used above */

+#define KDGETKEYDOWNSTATE 0x4B80 /* read kernel keydown bit */
+
 #endif /* _LINUX_KD_H */

any tips, pointers appreciated.

joe

-- 
Joseph Cheek, CTO and Founder, Lycoris
joseph@lycoris.com, www.lycoris.com
Lycoris Desktop/LX: Familiar.  Powerful.  Open.
+1 425 413-9521 voice, +1 425 671-0504 fax

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jun 15 2002 - 22:00:18 EST