summaryrefslogtreecommitdiff
path: root/sys/src/9/port/portfns.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-07-09 00:01:50 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2015-07-09 00:01:50 +0200
commit8ed25f24b7831eab394f14697766d55065b18822 (patch)
tree58fade4cfccb0e0e081e7687a3860406c80d54e1 /sys/src/9/port/portfns.h
parentfcb9abccbbc73a4f449d55c2c7fb369db2ad139d (diff)
kernel: various cleanups of imagereclaim(), pagereclaim(), freepages(), putimage()
imagereclaim(), pagereclaim(): - move imagereclaim() and pagereclaim() declarations to portfns.h - consistently use ulong type for page counts - name number of pages to free "pages" instead of "min" - check for pages == 0 on entry freepages(): - move pagechaindone() call to wakeup newpage() consumers inside palloc critical section. putimage(): - use long type for refcount
Diffstat (limited to 'sys/src/9/port/portfns.h')
-rw-r--r--sys/src/9/port/portfns.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/src/9/port/portfns.h b/sys/src/9/port/portfns.h
index 5fbcf1305..2f135c31b 100644
--- a/sys/src/9/port/portfns.h
+++ b/sys/src/9/port/portfns.h
@@ -131,6 +131,7 @@ long ibrk(uintptr, int);
void ilock(Lock*);
void interrupted(void);
void iunlock(Lock*);
+ulong imagereclaim(ulong);
long incref(Ref*);
void initseg(void);
int iprint(char*, ...);
@@ -204,7 +205,8 @@ Block* padblock(Block*, int);
void pagechaindone(void);
void pagechainhead(Page*);
void pageinit(void);
-ulong pagenumber(Page*);
+ulong pagenumber(Page*);
+ulong pagereclaim(Image*, ulong);
void pagersummary(void);
void panic(char*, ...);
Cmdbuf* parsecmd(char *a, int n);