xref: /haiku/headers/private/kernel/fs/devfs.h (revision b028e77473189065f2baefc6f5e10d451cf591e2)
1 /*
2  * Copyright 2002-2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
6  * Distributed under the terms of the NewOS License.
7  */
8 #ifndef _DEVFS_H
9 #define _DEVFS_H
10 
11 
12 #include <Drivers.h>
13 
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 void devfs_add_preloaded_drivers(struct kernel_args* args);
20 
21 status_t devfs_add_driver(const char *path);
22 
23 status_t devfs_unpublish_file_device(const char *path);
24 status_t devfs_publish_file_device(const char *path, const char *filePath);
25 
26 status_t devfs_unpublish_partition(const char *path);
27 status_t devfs_publish_partition(const char *path, const partition_info *info);
28 
29 status_t devfs_unpublish_device(const char *path, bool disconnect);
30 status_t devfs_publish_device(const char *path, void *ident, device_hooks *calls);
31 status_t devfs_publish_directory(const char *path);
32 
33 #ifdef __cplusplus
34 }
35 #endif
36 
37 #endif /* _DEVFS_H */
38