BPicture: Fix archive constructor.
[haiku.git] / src / add-ons / kernel / bus_managers / scsi / KernelExport_ext.h
blobf2b82399987ca7ebbe70a5b9ad3a59b91a139c9d
1 /*
2 * Copyright 2004-2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Copyright 2002/03, Thomas Kurschel. All rights reserved.
5 * Distributed under the terms of the MIT License.
6 */
8 /*
9 Functions that are missing in kernel.
12 #ifndef _KERNEL_EXPORT_EXT_H
13 #define _KERNEL_EXPORT_EXT_H
16 #include <sys/cdefs.h>
18 #include <KernelExport.h>
19 #include <iovec.h>
22 __BEGIN_DECLS
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 size_t max_entries, // max number of entries in map
33 size_t *num_entries, // actual number of map entries used
34 size_t *mapped_len // actual number of bytes described by map
38 __END_DECLS
41 #endif