off 28 kernel/elf.h uint64 off; off 26 kernel/exec.c int i, off; off 53 kernel/exec.c for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){ off 54 kernel/exec.c if(readi(ip, 0, (uint64)&ph, off, sizeof(ph)) != sizeof(ph)) off 68 kernel/exec.c if(loadseg(pagetable, ph.vaddr, ip, ph.off, ph.filesz) < 0) off 122 kernel/file.c if((r = readi(f->ip, 1, addr, f->off, n)) > 0) off 123 kernel/file.c f->off += r; off 164 kernel/file.c if ((r = writei(f->ip, 1, addr + i, f->off, n1)) > 0) off 165 kernel/file.c f->off += r; off 8 kernel/file.h uint off; // FD_INODE off 472 kernel/fs.c readi(struct inode *ip, int user_dst, uint64 dst, uint off, uint n) off 477 kernel/fs.c if(off > ip->size || off + n < off) off 479 kernel/fs.c if(off + n > ip->size) off 480 kernel/fs.c n = ip->size - off; off 482 kernel/fs.c for(tot=0; tot<n; tot+=m, off+=m, dst+=m){ off 483 kernel/fs.c uint addr = bmap(ip, off/BSIZE); off 487 kernel/fs.c m = min(n - tot, BSIZE - off%BSIZE); off 488 kernel/fs.c if(either_copyout(user_dst, dst, bp->data + (off % BSIZE), m) == -1) { off 506 kernel/fs.c writei(struct inode *ip, int user_src, uint64 src, uint off, uint n) off 511 kernel/fs.c if(off > ip->size || off + n < off) off 513 kernel/fs.c if(off + n > MAXFILE*BSIZE) off 516 kernel/fs.c for(tot=0; tot<n; tot+=m, off+=m, src+=m){ off 517 kernel/fs.c uint addr = bmap(ip, off/BSIZE); off 521 kernel/fs.c m = min(n - tot, BSIZE - off%BSIZE); off 522 kernel/fs.c if(either_copyin(bp->data + (off % BSIZE), user_src, src, m) == -1) { off 530 kernel/fs.c if(off > ip->size) off 531 kernel/fs.c ip->size = off; off 554 kernel/fs.c uint off, inum; off 560 kernel/fs.c for(off = 0; off < dp->size; off += sizeof(de)){ off 561 kernel/fs.c if(readi(dp, 0, (uint64)&de, off, sizeof(de)) != sizeof(de)) off 568 kernel/fs.c *poff = off; off 582 kernel/fs.c int off; off 593 kernel/fs.c for(off = 0; off < dp->size; off += sizeof(de)){ off 594 kernel/fs.c if(readi(dp, 0, (uint64)&de, off, sizeof(de)) != sizeof(de)) off 602 kernel/fs.c if(writei(dp, 0, (uint64)&de, off, sizeof(de)) != sizeof(de)) off 176 kernel/sysfile.c int off; off 179 kernel/sysfile.c for(off=2*sizeof(de); off<dp->size; off+=sizeof(de)){ off 180 kernel/sysfile.c if(readi(dp, 0, (uint64)&de, off, sizeof(de)) != sizeof(de)) off 194 kernel/sysfile.c uint off; off 211 kernel/sysfile.c if((ip = dirlookup(dp, name, &off)) == 0) off 223 kernel/sysfile.c if(writei(dp, 0, (uint64)&de, off, sizeof(de)) != sizeof(de)) off 357 kernel/sysfile.c f->off = 0; off 72 mkfs/mkfs.c uint rootino, inum, off; off 167 mkfs/mkfs.c off = xint(din.size); off 168 mkfs/mkfs.c off = ((off/BSIZE) + 1) * BSIZE; off 169 mkfs/mkfs.c din.size = xint(off); off 258 mkfs/mkfs.c uint fbn, off, n1; off 265 mkfs/mkfs.c off = xint(din.size); off 268 mkfs/mkfs.c fbn = off / BSIZE; off 286 mkfs/mkfs.c n1 = min(n, (fbn + 1) * BSIZE - off); off 288 mkfs/mkfs.c bcopy(p, buf + off - (fbn * BSIZE), n1); off 291 mkfs/mkfs.c off += n1; off 294 mkfs/mkfs.c din.size = xint(off);