view src/inode.h @ 164:9c501dca25e3

add file_impl_pipe.cbc
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Wed, 15 Jan 2020 18:53:32 +0900
parents eda7ea83f4f3
children
line wrap: on
line source

typedef struct inode <Impl, Isa> impl file {
    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;