Changed the VM store and VFS functions a bit to better match the corresponding driver hooks.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8844 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a1978b5cef
commit
1b4746c270
@ -75,9 +75,9 @@ status_t vfs_get_vnode(mount_id mountID, vnode_id vnodeID, void **_vnode);
|
||||
int vfs_put_vnode_ptr(void *vnode);
|
||||
void vfs_vnode_acquire_ref(void *vnode);
|
||||
void vfs_vnode_release_ref(void *vnode);
|
||||
ssize_t vfs_can_page(void *vnode);
|
||||
ssize_t vfs_read_page(void *vnode, iovecs *vecs, off_t pos);
|
||||
ssize_t vfs_write_page(void *vnode, iovecs *vecs, off_t pos);
|
||||
bool vfs_can_page(void *vnode);
|
||||
status_t vfs_read_pages(void *vnode, off_t pos, const iovec *vecs, size_t count, size_t *_numBytes);
|
||||
status_t vfs_write_pages(void *vnode, off_t pos, const iovec *vecs, size_t count, size_t *_numBytes);
|
||||
status_t vfs_get_vnode_cache(void *vnode, void **_cache);
|
||||
|
||||
/* special module convenience call */
|
||||
|
@ -134,9 +134,9 @@ typedef struct vm_store {
|
||||
typedef struct vm_store_ops {
|
||||
void (*destroy)(struct vm_store *backing_store);
|
||||
off_t (*commit)(struct vm_store *backing_store, off_t size);
|
||||
int (*has_page)(struct vm_store *backing_store, off_t offset);
|
||||
ssize_t (*read)(struct vm_store *backing_store, off_t offset, iovecs *vecs);
|
||||
ssize_t (*write)(struct vm_store *backing_store, off_t offset, iovecs *vecs);
|
||||
bool (*has_page)(struct vm_store *backing_store, off_t offset);
|
||||
status_t (*read)(struct vm_store *backing_store, off_t offset, const iovec *vecs, size_t count, size_t *_numBytes);
|
||||
status_t (*write)(struct vm_store *backing_store, off_t offset, const iovec *vecs, size_t count, size_t *_numBytes);
|
||||
int (*fault)(struct vm_store *backing_store, struct vm_address_space *aspace, off_t offset);
|
||||
void (*acquire_ref)(struct vm_store *backing_store);
|
||||
void (*release_ref)(struct vm_store *backing_store);
|
||||
|
Loading…
Reference in New Issue
Block a user