view src/inode.h @ 156:18a432ac4f9f

add Syscall close
author tobaru
date Fri, 20 Dec 2019 16:05:31 +0900
parents
children
line wrap: on
line source

typedef struct inode <Impl> {
    uint    dev;        // Device number
    uint    inum;       // Inode number
    int     ref;        // Reference count
    int     flags;      // I_BUSY, I_VALID

    short   type;       // copy of disk inode
    short   major;
    short   minor;
    short   nlink;
    uint    size;
    uint    addrs[NDIRECT+1];
} inode;