summaryrefslogtreecommitdiff
path: root/include/mach_debug/mach_debug_types.h
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-02-01 02:09:02 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-02-01 16:40:25 +0100
commit7353f589daccb7fb61880d6994f6471e103da902 (patch)
treec6afbcff685b863878ad79342d681f3cb8465001 /include/mach_debug/mach_debug_types.h
parent42b8f0e06f9b3a4a089ddbebd851988e095b0c72 (diff)
include: add a fixed-size string type for debugging purposes
* include/mach/debug.defs: New file. * include/mach/debug.h: Likewise.
Diffstat (limited to 'include/mach_debug/mach_debug_types.h')
-rw-r--r--include/mach_debug/mach_debug_types.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/mach_debug/mach_debug_types.h b/include/mach_debug/mach_debug_types.h
index 5d4efcde..9c7d1fde 100644
--- a/include/mach_debug/mach_debug_types.h
+++ b/include/mach_debug/mach_debug_types.h
@@ -37,4 +37,15 @@
typedef char symtab_name_t[32];
+/*
+ * A fixed-length string data type intended for names given to
+ * kernel objects.
+ *
+ * Note that it is not guaranteed that the in-kernel data
+ * structure will hold KERNEL_DEBUG_NAME_MAX bytes. The given
+ * name will be truncated to fit into the target data structure.
+ */
+#define KERNEL_DEBUG_NAME_MAX (64)
+typedef char kernel_debug_name_t[KERNEL_DEBUG_NAME_MAX];
+
#endif /* _MACH_DEBUG_MACH_DEBUG_TYPES_H_ */