vfs: check userland buffers before reading them.
[haiku.git] / src / add-ons / kernel / bus_managers / ps2 / ps2_module.cpp
blobabb7e0b21853aba2759feef5d9e69c70d6d73d11
1 /*
2 * Copyright 2005-2007 Marcus Overhagen
3 * Distributed under the terms of the MIT License.
5 * PS/2 bus manager
7 * Authors (in chronological order):
8 * Marcus Overhagen (marcus@overhagen.de)
9 */
12 #include "PS2.h"
13 #include "ps2_common.h"
16 static int32
17 function1()
19 return 0;
23 static int32
24 function2()
26 return 0;
30 static status_t
31 std_ops(int32 op, ...)
33 switch(op) {
34 case B_MODULE_INIT:
35 return ps2_init();
37 case B_MODULE_UNINIT:
38 ps2_uninit();
39 break;
40 default:
41 return B_ERROR;
43 return B_OK;
47 static ps2_module_info ps2_module = {
50 B_PS2_MODULE_NAME,
51 B_KEEP_LOADED,
52 std_ops
54 NULL
56 &function1,
57 &function2,
61 module_info *modules[] = {
62 (module_info *)&ps2_module,
63 NULL