view src/impl/fs_impl.h @ 309:c6cbe4711e02

tweak
author menikon
date Mon, 03 Feb 2020 15:29:54 +0900
parents 4cf83e6ce534
children b40deb55b7db
line wrap: on
line source

typedef struct fs_impl<Type, Isa> impl fs{
    union Data* fs_impl;
    struct superblock* sb;
    uint dev;
    short type;
    struct buf* bp;
    struct dinode* dip;
    int inum;
    int iget_val;

    __code allocinode(struct fs_impl* fs_impl, uint dev, short type, __code next(int iget_val, ...));
    __code allocinode_loop(struct fs_impl* fs_impl, int inum, uint dev, struct superblock* sb, struct buf* bp, struct dinode* dip, __code next(int iget_val, ...));
    __code allocinode_loopcheck(Type* fs_impl, int inum, uint dev, struct superblock* sb, struct buf* bp, struct dinode* dip, __code next(int iget_val, ...));
    __code allocinode_noloop(struct fs_impl* fs_impl, int inum, uint dev, struct superblock* sb, struct buf* bp, struct dinode* dip, __code next(int iget_val, ...));
    __code lockinode1(Type* fs_impl, struct inode *ip, struct buf *bp, struct dinode *dip, __code next(...));
    __code lockinode2(struct fs_impl* fs_impl, struct inode* ip, struct buf* bp, struct dinode* dip, __code next(...));
    __code lockinode_sleepcheck(struct fs_impl* fs_impl, struct inode* ip, __code next(...));
    __code iput_check(struct fs_impl* fs_impl, struct inode* ip, __code next(...));
    __code iput_inode_nolink(struct fs_impl* fs_impl, struct inode* ip, __code next(...));
    __code next(...);
} fs_impl;