vfs: add vfs_open
vfs_open parses a path and returns the correct inode. The out inode is a double pointer argument passed to vfs_open, and the return value is an error code, or 0 Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
913b91189b
commit
a8540494a9
11 changed files with 345 additions and 137 deletions
|
|
@ -17,6 +17,7 @@
|
|||
#define EBUSY 12
|
||||
#define ENOSYS 13
|
||||
#define ESYSCALLBLK 14
|
||||
#define ENAMETOOLONG 15
|
||||
|
||||
#ifndef __ASM__
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
struct tty;
|
||||
|
||||
#define STRINGIZE(x) #x
|
||||
|
||||
#define COL_RED_BLACK "\033[31m"
|
||||
#define COL_YELLOW_BLACK "\033[33m"
|
||||
#define COL_GREEN_BLACK "\033[32m"
|
||||
|
|
@ -27,7 +29,7 @@ struct tty;
|
|||
#define kinfo(...) (kprintf(LOG_INFO __VA_ARGS__))
|
||||
#define kwarn(...) (kprintf(LOG_WARN __VA_ARGS__))
|
||||
#define kerr(...) (kprintf(LOG_ERROR __VA_ARGS__))
|
||||
#define krdy(...) (kprintf(LOG_READY __VA_ARGS__))
|
||||
#define krdy(...) (kprintf(LOG_READY __FILE__ ":" STRINGIZE(__LINE__)"(" STRINGIZE(__func__) ") " __VA_ARGS__))
|
||||
#ifdef KDEBUG
|
||||
#define kdebug(...) (kprintf(LOG_DEBUG __VA_ARGS__))
|
||||
#else
|
||||
|
|
|
|||
Loading…
Reference in a new issue