nckernel  0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
vfs.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  entry
 ninfo 에 대한 context 정보를 정의 한다. More...
 
struct  nctx
 파일에 접근하는 과정의 콘텍스트 정보를 유지/관리 한다. More...
 
struct  ninfo
 Node information 를 정의한다. More...
 
struct  ninfo_dev
 장치 정보 More...
 
struct  ninfo_ops
 해당 ninfo 에 대한 operation 함수 포인터 More...
 
struct  sinfo
 

Macros

#define MAJOR(id)   ((id) >> 8)
 Device 의 종류 More...
 
#define MINOR(id)   ((id) & 0xFF)
 Sub device 종류 More...
 
#define ROOT_NINFO   0
 

Enumerations

enum  ntype { NINFO_TYPE_UNKNOWN, NINFO_TYPE_FOLDER, NINFO_TYPE_FILE, NINFO_TYPE_DEVICE }
 Node type 을 정의한다. More...
 

Functions

int vfs_attach_storage (struct ninfo *node, struct sinfo *sb)
 저장 장치를 특정 노드와 연결시킨다. More...
 
int vfs_deatch_storage (struct ninfo *node)
 저장 장치를 특정 노드와의 연결을 끊는다. More...
 
int vfs_del_ninfo (struct ninfo *ninfo)
 주어진 노드를 삭제한다. 이 때, 자식 노드들이 있으면 모두 함께 삭제 More...
 
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 *si, struct ninfo *parent, const char *name, dev_t device, struct ninfo_ops *nops)
 
struct ninfovfs_new_ninfo (struct sinfo *si, struct ninfo *parent, const char *name, void *info)
 주어진 경로에 해당하는 노드를 새로 만든다. More...