diff options
Diffstat (limited to 'vm/mmap.h')
| -rw-r--r-- | vm/mmap.h | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -18,14 +18,14 @@ struct mmap_table | |||
| 18 | /* a single entry in the mmap table */ | 18 | /* a single entry in the mmap table */ |
| 19 | struct mmap_table_entry | 19 | struct 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 | ||
| 26 | bool mmap_table_init (struct mmap_table *table); | 26 | bool mmap_table_init (struct mmap_table *table); |
| 27 | void mmap_table_free (struct mmap_table *table); | 27 | void mmap_table_free (struct mmap_table *table); |
| 28 | mapid_t mmap_table_insert (struct mmap_table *table, uint8_t *upage, | 28 | mapid_t mmap_table_insert (struct mmap_table *table, void *upage, |
| 29 | struct file *file, off_t len); | 29 | struct file *file, off_t len); |
| 30 | bool mmap_table_remove (struct mmap_table *table, mapid_t mapping); | 30 | bool mmap_table_remove (struct mmap_table *table, mapid_t mapping); |
| 31 | 31 | ||
