summaryrefslogtreecommitdiffstats
path: root/vm/mmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm/mmap.h')
-rw-r--r--vm/mmap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm/mmap.h b/vm/mmap.h
index 09276a7..159e61a 100644
--- a/vm/mmap.h
+++ b/vm/mmap.h
@@ -18,14 +18,14 @@ struct mmap_table
18/* a single entry in the mmap table */ 18/* a single entry in the mmap table */
19struct mmap_table_entry 19struct mmap_table_entry
20{ 20{
21 uint8_t *upage; /* virtual address of first page of mmapped file */ 21 void *upage; /* virtual address of first page of mmapped file */
22 struct file *file; /* file handle */ 22 struct file *file; /* file handle */
23 int pages; /* number of pages the mapping needs */ 23 int pages; /* number of pages the mapping needs */
24}; 24};
25 25
26bool mmap_table_init (struct mmap_table *table); 26bool mmap_table_init (struct mmap_table *table);
27void mmap_table_free (struct mmap_table *table); 27void mmap_table_free (struct mmap_table *table);
28mapid_t mmap_table_insert (struct mmap_table *table, uint8_t *upage, 28mapid_t mmap_table_insert (struct mmap_table *table, void *upage,
29 struct file *file, off_t len); 29 struct file *file, off_t len);
30bool mmap_table_remove (struct mmap_table *table, mapid_t mapping); 30bool mmap_table_remove (struct mmap_table *table, mapid_t mapping);
31 31