Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //kernel.c:
- struct res_handle* handle = vfs_open("/dev/ktty", FM_READ | FM_WRITE);
- //vfs.c
- struct res_handle* vfs_open(char* path, uint32_t filemode) {
- static struct res_node* node;
- kprintf("Open \"%s\": node %d\n", path, node);
- }
- //Output:
- Open "/dev": node 0
Advertisement
Add Comment
Please, Sign In to add comment