inum 15 file.h uint inum; // Inode number inum 188 fs.c static struct inode* iget(uint dev, uint inum); inum 197 fs.c int inum; inum 201 fs.c for(inum = 1; inum < sb.ninodes; inum++){ inum 202 fs.c bp = bread(dev, IBLOCK(inum, sb)); inum 203 fs.c dip = (struct dinode*)bp->data + inum%IPB; inum 209 fs.c return iget(dev, inum); inum 226 fs.c bp = bread(ip->dev, IBLOCK(ip->inum, sb)); inum 227 fs.c dip = (struct dinode*)bp->data + ip->inum%IPB; inum 242 fs.c iget(uint dev, uint inum) inum 251 fs.c if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){ inum 266 fs.c ip->inum = inum; inum 299 fs.c bp = bread(ip->dev, IBLOCK(ip->inum, sb)); inum 300 fs.c dip = (struct dinode*)bp->data + ip->inum%IPB; inum 443 fs.c st->ino = ip->inum; inum 527 fs.c uint off, inum; inum 536 fs.c if(de.inum == 0) inum 542 fs.c inum = de.inum; inum 543 fs.c return iget(dp->dev, inum); inum 552 fs.c dirlink(struct inode *dp, char *name, uint inum) inum 568 fs.c if(de.inum == 0) inum 573 fs.c de.inum = inum; inum 54 fs.h ushort inum; inum 58 ls.c if(de.inum == 0) inum 39 mkfs.c void rinode(uint inum, struct dinode *ip); inum 42 mkfs.c void iappend(uint inum, void *p, int n); inum 71 mkfs.c uint rootino, inum, off; inum 121 mkfs.c de.inum = xshort(rootino); inum 126 mkfs.c de.inum = xshort(rootino); inum 145 mkfs.c inum = ialloc(T_FILE); inum 148 mkfs.c de.inum = xshort(inum); inum 153 mkfs.c iappend(inum, buf, cc); inum 184 mkfs.c winode(uint inum, struct dinode *ip) inum 190 mkfs.c bn = IBLOCK(inum, sb); inum 192 mkfs.c dip = ((struct dinode*)buf) + (inum % IPB); inum 198 mkfs.c rinode(uint inum, struct dinode *ip) inum 204 mkfs.c bn = IBLOCK(inum, sb); inum 206 mkfs.c dip = ((struct dinode*)buf) + (inum % IPB); inum 226 mkfs.c uint inum = freeinode++; inum 233 mkfs.c winode(inum, &din); inum 234 mkfs.c return inum; inum 256 mkfs.c iappend(uint inum, void *xp, int n) inum 265 mkfs.c rinode(inum, &din); inum 296 mkfs.c winode(inum, &din); inum 147 sysfile.c if(dp->dev != ip->dev || dirlink(dp, name, ip->inum) < 0){ inum 177 sysfile.c if(de.inum != 0) inum 273 sysfile.c if(dirlink(ip, ".", ip->inum) < 0 || dirlink(ip, "..", dp->inum) < 0) inum 277 sysfile.c if(dirlink(dp, name, ip->inum) < 0) inum 771 usertests.c ushort inum; inum 804 usertests.c if(de.inum == 0)