vfs: check userland buffers before reading them.
[haiku.git] / src / system / kernel / device_manager / devfs_private.h
blob74365133bf248a1e46aba164b7a20e1f5b804cfd
1 /*
2 * Copyright 2008, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef DEVFS_PRIVATE_H
6 #define DEVFS_PRIVATE_H
9 #include <SupportDefs.h>
12 namespace BPrivate {
13 class BaseDevice;
16 using BPrivate::BaseDevice;
19 status_t devfs_publish_device(const char* path, BaseDevice* device);
20 status_t devfs_unpublish_device(BaseDevice* device, bool disconnect);
22 status_t devfs_get_device(const char* path, BaseDevice*& _device);
23 void devfs_put_device(BaseDevice* device);
25 #endif /* DEVFS_PRIVATE_H */