MOS Source Code
Loading...
Searching...
No Matches
page_cache.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-3.0-or-later
2
3#pragma once
4
7
17
26
27ssize_t vfs_read_pagecache(inode_cache_t *icache, void *buf, size_t size, off_t offset);
28ssize_t vfs_write_pagecache(inode_cache_t *icache, const void *buf, size_t total_size, off_t offset);
29
39long pagecache_flush_or_drop(inode_cache_t *icache, off_t pgoff, size_t npages, bool drop_page);
40
48long pagecache_flush_or_drop_all(inode_cache_t *icache, bool drop_page);
long pagecache_flush_or_drop(inode_cache_t *icache, off_t pgoff, size_t npages, bool drop_page)
Flush or drop a range of pages from the page cache.
Definition page_cache.c:56
ssize_t vfs_write_pagecache(inode_cache_t *icache, const void *buf, size_t total_size, off_t offset)
Definition page_cache.c:137
long pagecache_flush_or_drop_all(inode_cache_t *icache, bool drop_page)
Flush or drop all pages in the page cache.
Definition page_cache.c:78
phyframe_t * pagecache_get_page_for_read(inode_cache_t *cache, off_t pgoff)
Get a page from the page cache.
Definition page_cache.c:85
phyframe_t * pagecache_get_page_for_write(inode_cache_t *cache, off_t pgoff)
Get a page from the page cache for writing.
Definition page_cache.c:103
ssize_t vfs_read_pagecache(inode_cache_t *icache, void *buf, size_t size, off_t offset)
Definition page_cache.c:108
size_t size
Definition slab.c:30
ssize_t off_t
Definition types.h:84
signed long ssize_t
Definition types.h:83