vfs: check userland buffers before reading them.
[haiku.git] / headers / os / drivers / dpc.h
blob549622b45f6c5cd75abefa896990254658953584
1 /* DPC module API
2 * Copyright 2007-2008, Haiku Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License
4 */
6 #ifndef _DPC_MODULE_H_
7 #define _DPC_MODULE_H_
9 #include <OS.h>
10 #include <module.h>
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
16 #define B_DPC_MODULE_NAME "generic/dpc/v1"
18 typedef void (*dpc_func) (void *arg);
20 typedef struct {
21 module_info info;
23 status_t (*new_dpc_queue)(void **queue, const char *name, int32 priority);
24 status_t (*delete_dpc_queue)(void *queue);
25 status_t (*queue_dpc)(void *queue, dpc_func func, void *arg);
26 } dpc_module_info;
29 #ifdef __cplusplus
31 #endif
33 #endif // _DPC_MODULE_H_