vfs: check userland buffers before reading them.
[haiku.git] / src / system / kernel / device_manager / id_generator.h
blobb8fdd2a0ee7c0bbe8d368f1ab597b2e87f72c103
1 /*
2 * Copyright 2004-2008, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Copyright 2002-04, Thomas Kurschel. All rights reserved.
5 * Distributed under the terms of the MIT License.
6 */
7 #ifndef ID_GENERATOR_H
8 #define ID_GENERATOR_H
11 #include <SupportDefs.h>
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
18 int32 dm_create_id(const char *name);
19 status_t dm_free_id(const char *name, uint32 id);
21 void dm_init_id_generator(void);
23 #ifdef __cplusplus
25 #endif
27 #endif /* ID_GENERATOR_H */