xref: /haiku/docs/develop/kernel/vm/vm_store_vnode (revision 1deede7388b04dbeec5af85cae7164735ea9e70d)
1static void vnode_destroy(struct vm_store *store)
2	Frees memory associated with this store.
3
4static off_t vnode_commit(struct vm_store *store, off_t size)
5	Sets committed size to size and returns it.
6
7static int vnode_has_page(struct vm_store *store, off_t offset)
8	Returns 1.
9
10static ssize_t vnode_read(struct vm_store *store, off_t offset, iovecs *vecs)
11	Calls vfs_readpage.
12
13static ssize_t vnode_write(struct vm_store *store, off_t offset, iovecs *vecs)
14	calls vfs_writepage
15
16static void vnode_acquire_ref(struct vm_store *store)
17	Calls vfs_vnode_aquire_ref
18
19static void vnode_release_ref(struct vm_store *store)
20	Calls vfs_vnode_release_ref
21
22vm_store *vm_store_create_vnode(void *vnode)
23	Creates space for a vm_store and a vnode_store_data. Sets data = vnode_store_data. Sets the vnode_store_data's vnode to vnode.
24