1 /* 2 * Copyright 2004-2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 3 * Copyright 2002/03, Thomas Kurschel. All rights reserved. 4 * 5 * Distributed under the terms of the MIT License. 6 */ 7 8 /* 9 Functions that are missing in kernel. 10 */ 11 12 #ifndef _KERNEL_EXPORT_EXT_H 13 #define _KERNEL_EXPORT_EXT_H 14 15 16 #include <sys/cdefs.h> 17 18 #include <KernelExport.h> 19 #include <iovec.h> 20 21 22 __BEGIN_DECLS 23 24 25 // get memory map of iovec 26 status_t get_iovec_memory_map( 27 iovec *vec, // iovec to analyze 28 size_t vec_count, // number of entries in vec 29 size_t vec_offset, // number of bytes to skip at beginning of vec 30 size_t len, // number of bytes to analyze 31 physical_entry *map, // resulting memory map 32 uint32 max_entries, // max number of entries in map 33 uint32 *num_entries, // actual number of map entries used 34 size_t *mapped_len // actual number of bytes described by map 35 ); 36 37 38 __END_DECLS 39 40 41 #endif 42