devfs: add devfs
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
7833400893
commit
4b17525d33
2 changed files with 108 additions and 0 deletions
15
include/fs/devfs.h
Normal file
15
include/fs/devfs.h
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef _DEVFS_H_
|
||||
#define _DEVFS_H_
|
||||
|
||||
#include <kernel/block.h>
|
||||
|
||||
#include <drivers/tty.h>
|
||||
|
||||
#include <fs/inode.h>
|
||||
|
||||
int devfs_insert_device_chr(const char *name, struct tty *device, dirent_t **out);
|
||||
int devfs_insert_device_blk(const char *name, struct block_device *device, dirent_t **out);
|
||||
void devfs_init();
|
||||
|
||||
#endif /* _DEVFS_H_ */
|
||||
Loading…
Reference in a new issue