dev 59 kernel/bio.c bget(uint dev, uint blockno) dev 67 kernel/bio.c if(b->dev == dev && b->blockno == blockno){ dev 79 kernel/bio.c b->dev = dev; dev 93 kernel/bio.c bread(uint dev, uint blockno) dev 97 kernel/bio.c b = bget(dev, blockno); dev 4 kernel/buf.h uint dev; dev 12 kernel/file.h #define major(dev) ((dev) >> 16 & 0xFFFF) dev 13 kernel/file.h #define minor(dev) ((dev) & 0xFFFF) dev 18 kernel/file.h uint dev; // Device number dev 31 kernel/fs.c readsb(int dev, struct superblock *sb) dev 35 kernel/fs.c bp = bread(dev, 1); dev 42 kernel/fs.c fsinit(int dev) { dev 43 kernel/fs.c readsb(dev, &sb); dev 46 kernel/fs.c initlog(dev, &sb); dev 51 kernel/fs.c bzero(int dev, int bno) dev 55 kernel/fs.c bp = bread(dev, bno); dev 66 kernel/fs.c balloc(uint dev) dev 73 kernel/fs.c bp = bread(dev, BBLOCK(b, sb)); dev 80 kernel/fs.c bzero(dev, b + bi); dev 92 kernel/fs.c bfree(int dev, uint b) dev 97 kernel/fs.c bp = bread(dev, BBLOCK(b, sb)); dev 192 kernel/fs.c static struct inode* iget(uint dev, uint inum); dev 199 kernel/fs.c ialloc(uint dev, short type) dev 206 kernel/fs.c bp = bread(dev, IBLOCK(inum, sb)); dev 213 kernel/fs.c return iget(dev, inum); dev 231 kernel/fs.c bp = bread(ip->dev, IBLOCK(ip->inum, sb)); dev 247 kernel/fs.c iget(uint dev, uint inum) dev 256 kernel/fs.c if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){ dev 270 kernel/fs.c ip->dev = dev; dev 304 kernel/fs.c bp = bread(ip->dev, IBLOCK(ip->inum, sb)); dev 390 kernel/fs.c addr = balloc(ip->dev); dev 402 kernel/fs.c addr = balloc(ip->dev); dev 407 kernel/fs.c bp = bread(ip->dev, addr); dev 410 kernel/fs.c addr = balloc(ip->dev); dev 434 kernel/fs.c bfree(ip->dev, ip->addrs[i]); dev 440 kernel/fs.c bp = bread(ip->dev, ip->addrs[NDIRECT]); dev 444 kernel/fs.c bfree(ip->dev, a[j]); dev 447 kernel/fs.c bfree(ip->dev, ip->addrs[NDIRECT]); dev 460 kernel/fs.c st->dev = ip->dev; dev 486 kernel/fs.c bp = bread(ip->dev, addr); dev 520 kernel/fs.c bp = bread(ip->dev, addr); dev 570 kernel/fs.c return iget(dp->dev, inum); dev 46 kernel/log.c int dev; dev 55 kernel/log.c initlog(int dev, struct superblock *sb) dev 63 kernel/log.c log.dev = dev; dev 74 kernel/log.c struct buf *lbuf = bread(log.dev, log.start+tail+1); // read log block dev 75 kernel/log.c struct buf *dbuf = bread(log.dev, log.lh.block[tail]); // read dst dev 89 kernel/log.c struct buf *buf = bread(log.dev, log.start); dev 105 kernel/log.c struct buf *buf = bread(log.dev, log.start); dev 184 kernel/log.c struct buf *to = bread(log.dev, log.start+tail+1); // log block dev 185 kernel/log.c struct buf *from = bread(log.dev, log.lh.block[tail]); // cache block dev 6 kernel/stat.h int dev; // File system's disk device dev 152 kernel/sysfile.c if(dp->dev != ip->dev || dirlink(dp, name, ip->inum) < 0){ dev 265 kernel/sysfile.c if((ip = ialloc(dp->dev, type)) == 0){