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:
Axel Dörfler 2004-09-04 17:18:36 +00:00
parent a1978b5cef
commit 1b4746c270
2 changed files with 6 additions and 6 deletions

View File

@ -75,9 +75,9 @@ status_t vfs_get_vnode(mount_id mountID, vnode_id vnodeID, void **_vnode);
int vfs_put_vnode_ptr(void *vnode); int vfs_put_vnode_ptr(void *vnode);
void vfs_vnode_acquire_ref(void *vnode); void vfs_vnode_acquire_ref(void *vnode);
void vfs_vnode_release_ref(void *vnode); void vfs_vnode_release_ref(void *vnode);
ssize_t vfs_can_page(void *vnode); bool vfs_can_page(void *vnode);
ssize_t vfs_read_page(void *vnode, iovecs *vecs, off_t pos); status_t vfs_read_pages(void *vnode, off_t pos, const iovec *vecs, size_t count, size_t *_numBytes);
ssize_t vfs_write_page(void *vnode, iovecs *vecs, off_t pos); 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); status_t vfs_get_vnode_cache(void *vnode, void **_cache);
/* special module convenience call */ /* special module convenience call */

View File

@ -134,9 +134,9 @@ typedef struct vm_store {
typedef struct vm_store_ops { typedef struct vm_store_ops {
void (*destroy)(struct vm_store *backing_store); void (*destroy)(struct vm_store *backing_store);
off_t (*commit)(struct vm_store *backing_store, off_t size); off_t (*commit)(struct vm_store *backing_store, off_t size);
int (*has_page)(struct vm_store *backing_store, off_t offset); bool (*has_page)(struct vm_store *backing_store, off_t offset);
ssize_t (*read)(struct vm_store *backing_store, off_t offset, iovecs *vecs); status_t (*read)(struct vm_store *backing_store, off_t offset, const iovec *vecs, size_t count, size_t *_numBytes);
ssize_t (*write)(struct vm_store *backing_store, off_t offset, iovecs *vecs); 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); int (*fault)(struct vm_store *backing_store, struct vm_address_space *aspace, off_t offset);
void (*acquire_ref)(struct vm_store *backing_store); void (*acquire_ref)(struct vm_store *backing_store);
void (*release_ref)(struct vm_store *backing_store); void (*release_ref)(struct vm_store *backing_store);