vm_create_vnode_cache() now fills a vm_cache_ref instead a void pointer.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10427 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2004-12-13 22:04:26 +00:00
parent 21bf7339b1
commit c00c141557
+7 -9
View File
@@ -1,17 +1,15 @@
/* /*
** Copyright 2002-2004, Axel Dörfler, [email protected]. All rights reserved. * Copyright 2002-2004, Axel Dörfler, [email protected]. All rights reserved.
** Distributed under the terms of the Haiku License. * Distributed under the terms of the MIT License.
** *
** Copyright 2001-2002, Travis Geiselbrecht. All rights reserved. * Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
** Distributed under the terms of the NewOS License. * Distributed under the terms of the NewOS License.
*/ */
#ifndef _KERNEL_VM_H #ifndef _KERNEL_VM_H
#define _KERNEL_VM_H #define _KERNEL_VM_H
#include <kernel.h> #include <kernel.h>
#include <defines.h>
#include <vfs.h>
#include <vm_types.h> #include <vm_types.h>
#include <arch/vm_translation_map.h> #include <arch/vm_translation_map.h>
@@ -62,7 +60,7 @@ area_id vm_copy_area(aspace_id addressSpaceID, const char *name, void **_address
area_id vm_clone_area(aspace_id aid, const char *name, void **address, uint32 addressSpec, area_id vm_clone_area(aspace_id aid, const char *name, void **address, uint32 addressSpec,
uint32 protection, uint32 mapping, area_id sourceArea); uint32 protection, uint32 mapping, area_id sourceArea);
status_t vm_delete_area(aspace_id aid, area_id id); status_t vm_delete_area(aspace_id aid, area_id id);
status_t vm_create_vnode_cache(void *vnode, void **_cache); status_t vm_create_vnode_cache(void *vnode, vm_cache_ref **_cacheRef);
status_t vm_get_page_mapping(aspace_id aid, addr_t vaddr, addr_t *paddr); status_t vm_get_page_mapping(aspace_id aid, addr_t vaddr, addr_t *paddr);
status_t vm_get_physical_page(addr_t paddr, addr_t *vaddr, int flags); status_t vm_get_physical_page(addr_t paddr, addr_t *vaddr, int flags);