nckernel  0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
vfs.c File Reference
#include <slibc.h>
#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <stddef.h>
#include <errno.h>
#include <string.h>
#include <assert.h>
#include <object.h>
#include <list.h>
#include <vfs.h>
#include <vfs0.h>
#include <debug.h>
Include dependency graph for vfs.c:

Go to the source code of this file.

Functions

int vfs_attach_storage (struct ninfo *node, struct sinfo *sb)
 저장 장치를 특정 노드와 연결시킨다. More...
 
int vfs_del_ninfo (struct ninfo *root)
 주어진 노드를 삭제한다. 이 때, 자식 노드들이 있으면 모두 함께 삭제 More...
 
int vfs_detach_storage (struct ninfo *node)
 
struct sinfovfs_get_last_sinfo (struct ninfo *node)
 주어진 노드에 가장 최근에 연결된 저장 장치 정보를 가져온다. More...
 
struct ninfovfs_get_ninfo (struct sinfo *sinfo, struct ninfo *node, const char *path)
 주어진 노드를 기준으로, 경로에 해당하는 노드 정보를 가져온다. More...
 
struct ninfovfs_get_ninfo_child (struct ninfo *node)
 자식 노드를 가져온다. More...
 
struct ninfovfs_get_ninfo_next_sibling (struct ninfo *node)
 다음 형제 노드를 가져온다. More...
 
struct ninfovfs_get_ninfo_parent (struct ninfo *node)
 부모 노드를 가져온다. 현재 노드가 root 노드와 같다면 NULL 반환 More...
 
struct ninfovfs_get_ninfo_prev_sibling (struct ninfo *node)
 이전 형제 노드를 가져온다. More...
 
int vfs_init (void)
 VFS 를 초기화 한다. More...
 
struct ninfovfs_new_dev_ninfo (struct sinfo *sinfo, struct ninfo *parent, const char *name, dev_t device, struct ninfo_ops *nops)
 
struct ninfovfs_new_ninfo (struct sinfo *sinfo, struct ninfo *parent, const char *name, void *info)
 주어진 경로에 해당하는 노드를 새로 만든다. More...
 

Function Documentation

int vfs_detach_storage ( struct ninfo node)

Definition at line 68 of file vfs.c.