MOS Source Code
Loading...
Searching...
No Matches
inode_cache_ops_t Struct Reference

#include <vfs_types.h>

+ Collaboration diagram for inode_cache_ops_t:

Public Attributes

phyframe_t *(* fill_cache )(inode_cache_t *cache, off_t pgoff)
 Read a page from the underlying storage, at file offset pgoff * MOS_PAGE_SIZE.
 
bool(* page_write_begin )(inode_cache_t *cache, off_t file_offset, size_t inpage_size, phyframe_t **page_out, void **data)
 
void(* page_write_end )(inode_cache_t *cache, off_t file_offset, size_t inpage_size, phyframe_t *page, void *data)
 
long(* flush_page )(inode_cache_t *cache, off_t pgoff, phyframe_t *page)
 Flush a page to the underlying storage.
 

Detailed Description

Definition at line 131 of file vfs_types.h.

Member Data Documentation

◆ fill_cache

phyframe_t *(* fill_cache) (inode_cache_t *cache, off_t pgoff)

Read a page from the underlying storage, at file offset pgoff * MOS_PAGE_SIZE.

Definition at line 136 of file vfs_types.h.

Referenced by pagecache_get_page_for_read().

◆ page_write_begin

bool(* page_write_begin) (inode_cache_t *cache, off_t file_offset, size_t inpage_size, phyframe_t **page_out, void **data)

Definition at line 138 of file vfs_types.h.

Referenced by vfs_write_pagecache().

◆ page_write_end

void(* page_write_end) (inode_cache_t *cache, off_t file_offset, size_t inpage_size, phyframe_t *page, void *data)

Definition at line 139 of file vfs_types.h.

Referenced by vfs_write_pagecache().

◆ flush_page

long(* flush_page) (inode_cache_t *cache, off_t pgoff, phyframe_t *page)

Flush a page to the underlying storage.

Definition at line 144 of file vfs_types.h.

Referenced by do_flush_and_drop_cached_page().


The documentation for this struct was generated from the following file: