2 * Copyright 2010, Michael Lotz, mmlr@mlotz.ch.
3 * Copyright 2004, Axel Dörfler, axeld@pinc-software.de.
4 * Distributed under the terms of the Haiku License.
15 #include <tty/tty_module.h>
17 #include "tty_private.h"
19 struct mutex gGlobalTTYLock
;
20 struct mutex gTTYCookieLock
;
21 struct recursive_lock gTTYRequestLock
;
27 // create the request mutex
28 recursive_lock_init(&gTTYRequestLock
, "tty requests");
30 // create the global mutex
31 mutex_init(&gGlobalTTYLock
, "tty global");
33 // create the cookie mutex
34 mutex_init(&gTTYCookieLock
, "tty cookies");
43 recursive_lock_destroy(&gTTYRequestLock
);
44 mutex_destroy(&gTTYCookieLock
);
45 mutex_destroy(&gGlobalTTYLock
);
50 tty_module_std_ops(int32 op
, ...)
54 return init_tty_module();
65 static struct tty_module_info sTTYModule
= {
86 module_info
*modules
[] = {
87 (module_info
*)&sTTYModule
,