sz 27 kernel/exec.c uint64 argc, sz = 0, sp, ustack[MAXARG], stackbase; sz 65 kernel/exec.c if((sz1 = uvmalloc(pagetable, sz, ph.vaddr + ph.memsz, flags2perm(ph.flags))) == 0) sz 67 kernel/exec.c sz = sz1; sz 76 kernel/exec.c uint64 oldsz = p->sz; sz 81 kernel/exec.c sz = PGROUNDUP(sz); sz 83 kernel/exec.c if((sz1 = uvmalloc(pagetable, sz, sz + (USERSTACK+1)*PGSIZE, PTE_W)) == 0) sz 85 kernel/exec.c sz = sz1; sz 86 kernel/exec.c uvmclear(pagetable, sz-(USERSTACK+1)*PGSIZE); sz 87 kernel/exec.c sp = sz; sz 126 kernel/exec.c p->sz = sz; sz 135 kernel/exec.c proc_freepagetable(pagetable, sz); sz 148 kernel/exec.c loadseg(pagetable_t pagetable, uint64 va, struct inode *ip, uint offset, uint sz) sz 153 kernel/exec.c for(i = 0; i < sz; i += PGSIZE){ sz 157 kernel/exec.c if(sz - i < PGSIZE) sz 158 kernel/exec.c n = sz - i; sz 162 kernel/proc.c proc_freepagetable(p->pagetable, p->sz); sz 164 kernel/proc.c p->sz = 0; sz 211 kernel/proc.c proc_freepagetable(pagetable_t pagetable, uint64 sz) sz 215 kernel/proc.c uvmfree(pagetable, sz); sz 243 kernel/proc.c p->sz = PGSIZE; sz 262 kernel/proc.c uint64 sz; sz 265 kernel/proc.c sz = p->sz; sz 267 kernel/proc.c if((sz = uvmalloc(p->pagetable, sz, sz + n, PTE_W)) == 0) { sz 271 kernel/proc.c sz = uvmdealloc(p->pagetable, sz, sz + n); sz 273 kernel/proc.c p->sz = sz; sz 292 kernel/proc.c if(uvmcopy(p->pagetable, np->pagetable, p->sz) < 0){ sz 297 kernel/proc.c np->sz = p->sz; sz 100 kernel/proc.h uint64 sz; // Size of process memory (bytes) sz 357 kernel/riscv.h #define PGROUNDUP(sz) (((sz)+PGSIZE-1) & ~(PGSIZE-1)) sz 15 kernel/syscall.c if(addr >= p->sz || addr+sizeof(uint64) > p->sz) // both tests needed, in case of overflow sz 45 kernel/sysproc.c addr = myproc()->sz; sz 132 kernel/vm.c kvmmap(pagetable_t kpgtbl, uint64 va, uint64 pa, uint64 sz, int perm) sz 134 kernel/vm.c if(mappages(kpgtbl, va, sz, pa, perm) != 0) sz 218 kernel/vm.c uvmfirst(pagetable_t pagetable, uchar *src, uint sz) sz 222 kernel/vm.c if(sz >= PGSIZE) sz 227 kernel/vm.c memmove(mem, src, sz); sz 299 kernel/vm.c uvmfree(pagetable_t pagetable, uint64 sz) sz 301 kernel/vm.c if(sz > 0) sz 302 kernel/vm.c uvmunmap(pagetable, 0, PGROUNDUP(sz)/PGSIZE, 1); sz 313 kernel/vm.c uvmcopy(pagetable_t old, pagetable_t new, uint64 sz) sz 320 kernel/vm.c for(i = 0; i < sz; i += PGSIZE){ sz 1708 user/usertests.c int fd, sz; sz 1711 user/usertests.c for(sz = 499; sz < (MAXOPBLOCKS+2)*BSIZE; sz += 471){ sz 1719 user/usertests.c int cc = write(fd, buf, sz); sz 1720 user/usertests.c if(cc != sz){ sz 1721 user/usertests.c printf("%s: write(%d) ret %d\n", s, sz, cc); sz 2489 user/usertests.c int sz = (uint64) sbrk(0); sz 2493 user/usertests.c sbrk(-sz); sz 2505 user/usertests.c int sz = (uint64) sbrk(0); sz 2509 user/usertests.c sbrk(-(sz - 3500)); sz 2731 user/usertests.c int sz = sizeof(buf); sz 2732 user/usertests.c int cc = write(fd, buf, sz); sz 2733 user/usertests.c if(cc != sz){ sz 2734 user/usertests.c printf("%s: write(%d) ret %d\n", s, sz, cc);