* struct vnode is an opaque type now, removed void* where it was used incorrectly.
* Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22461 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2006, Haiku Inc. All Rights Reserved.
|
||||
* Copyright 2002-2007, Haiku Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT license.
|
||||
*
|
||||
* Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
|
||||
@@ -25,7 +25,7 @@ struct elf_image_info {
|
||||
char *name;
|
||||
image_id id;
|
||||
int32 ref_count;
|
||||
void *vnode;
|
||||
struct vnode *vnode;
|
||||
elf_region text_region;
|
||||
elf_region data_region;
|
||||
addr_t dynamic_section; // pointer to the dynamic section
|
||||
|
||||
@@ -26,10 +26,10 @@
|
||||
struct cache_module_info {
|
||||
module_info info;
|
||||
|
||||
void (*node_opened)(void *vnode, int32 fdType, dev_t mountID, ino_t parentID,
|
||||
ino_t vnodeID, const char *name, off_t size);
|
||||
void (*node_closed)(void *vnode, int32 fdType, dev_t mountID, ino_t vnodeID,
|
||||
int32 accessType);
|
||||
void (*node_opened)(struct vnode *vnode, int32 fdType, dev_t mountID,
|
||||
ino_t parentID, ino_t vnodeID, const char *name, off_t size);
|
||||
void (*node_closed)(struct vnode *vnode, int32 fdType, dev_t mountID,
|
||||
ino_t vnodeID, int32 accessType);
|
||||
void (*node_launched)(size_t argCount, char * const *args);
|
||||
};
|
||||
|
||||
@@ -37,12 +37,12 @@ struct cache_module_info {
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern void cache_node_opened(void *vnode, int32 fdType, vm_cache *cache,
|
||||
extern void cache_node_opened(struct vnode *vnode, int32 fdType, vm_cache *cache,
|
||||
dev_t mountID, ino_t parentID, ino_t vnodeID, const char *name);
|
||||
extern void cache_node_closed(void *vnode, int32 fdType, vm_cache *cache,
|
||||
extern void cache_node_closed(struct vnode *vnode, int32 fdType, vm_cache *cache,
|
||||
dev_t mountID, ino_t vnodeID);
|
||||
extern void cache_node_launched(size_t argCount, char * const *args);
|
||||
extern void cache_prefetch_vnode(void *vnode, off_t offset, size_t size);
|
||||
extern void cache_prefetch_vnode(struct vnode *vnode, off_t offset, size_t size);
|
||||
extern void cache_prefetch(dev_t mountID, ino_t vnodeID, off_t offset, size_t size);
|
||||
extern status_t file_cache_init_post_boot_device(void);
|
||||
extern status_t file_cache_init(void);
|
||||
|
||||
@@ -78,32 +78,34 @@ int vfs_getrlimit(int resource, struct rlimit * rlp);
|
||||
int vfs_setrlimit(int resource, const struct rlimit * rlp);
|
||||
|
||||
/* calls needed by the VM for paging and by the file cache */
|
||||
int vfs_get_vnode_from_fd(int fd, bool kernel, void **vnode);
|
||||
status_t vfs_get_vnode_from_path(const char *path, bool kernel, void **vnode);
|
||||
status_t vfs_get_vnode(dev_t mountID, ino_t vnodeID, void **_vnode);
|
||||
int vfs_get_vnode_from_fd(int fd, bool kernel, struct vnode **_vnode);
|
||||
status_t vfs_get_vnode_from_path(const char *path, bool kernel,
|
||||
struct vnode **_vnode);
|
||||
status_t vfs_get_vnode(dev_t mountID, ino_t vnodeID, struct vnode **_vnode);
|
||||
status_t vfs_entry_ref_to_vnode(dev_t mountID, ino_t directoryID,
|
||||
const char *name, void **_vnode);
|
||||
void vfs_vnode_to_node_ref(void *_vnode, dev_t *_mountID, ino_t *_vnodeID);
|
||||
const char *name, struct vnode **_vnode);
|
||||
void vfs_vnode_to_node_ref(struct vnode *vnode, dev_t *_mountID,
|
||||
ino_t *_vnodeID);
|
||||
|
||||
status_t vfs_lookup_vnode(dev_t mountID, ino_t vnodeID, void **_vnode);
|
||||
void vfs_put_vnode(void *vnode);
|
||||
void vfs_acquire_vnode(void *vnode);
|
||||
status_t vfs_lookup_vnode(dev_t mountID, ino_t vnodeID, struct vnode **_vnode);
|
||||
void vfs_put_vnode(struct vnode *vnode);
|
||||
void vfs_acquire_vnode(struct vnode *vnode);
|
||||
status_t vfs_get_cookie_from_fd(int fd, void **_cookie);
|
||||
bool vfs_can_page(void *vnode, void *cookie);
|
||||
status_t vfs_read_pages(void *vnode, void *cookie, off_t pos,
|
||||
bool vfs_can_page(struct vnode *vnode, void *cookie);
|
||||
status_t vfs_read_pages(struct vnode *vnode, void *cookie, off_t pos,
|
||||
const iovec *vecs, size_t count, size_t *_numBytes, bool mayBlock,
|
||||
bool fsReenter);
|
||||
status_t vfs_write_pages(void *vnode, void *cookie, off_t pos,
|
||||
status_t vfs_write_pages(struct vnode *vnode, void *cookie, off_t pos,
|
||||
const iovec *vecs, size_t count, size_t *_numBytes, bool mayBlock,
|
||||
bool fsReenter);
|
||||
status_t vfs_get_vnode_cache(void *vnode, struct vm_cache **_cache,
|
||||
status_t vfs_get_vnode_cache(struct vnode *vnode, struct vm_cache **_cache,
|
||||
bool allocate);
|
||||
status_t vfs_get_file_map( void *_vnode, off_t offset, size_t size,
|
||||
status_t vfs_get_file_map(struct vnode *vnode, off_t offset, size_t size,
|
||||
struct file_io_vec *vecs, size_t *_count);
|
||||
status_t vfs_get_fs_node_from_path(dev_t mountID, const char *path,
|
||||
bool kernel, void **_node);
|
||||
status_t vfs_stat_vnode(void *_vnode, struct stat *stat);
|
||||
status_t vfs_get_vnode_name(void *vnode, char *name, size_t nameSize);
|
||||
status_t vfs_stat_vnode(struct vnode *vnode, struct stat *stat);
|
||||
status_t vfs_get_vnode_name(struct vnode *vnode, char *name, size_t nameSize);
|
||||
status_t vfs_get_cwd(dev_t *_mountID, ino_t *_vnodeID);
|
||||
void vfs_unlock_vnode_if_locked(struct file_descriptor *descriptor);
|
||||
status_t vfs_disconnect_vnode(dev_t mountID, ino_t vnodeID);
|
||||
|
||||
Reference in New Issue
Block a user