kernel: Migrate struct generic_io_vec to a private header outside src/.

This way it is more easily accessed from drivers outside the kernel,
which it soon will be, without having to add an explicit UseHeaders.
(The drivers that use it already all use the IOScheduler.)

No functional change.

Change-Id: Ibc2d2678e37d9d7ab73391cb17b72cca86f92132
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6477
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Augustin Cavalier
2023-05-30 17:54:28 +00:00
committed by waddlesplash
parent 47b66bb676
commit 65cdc13e7d
2 changed files with 9 additions and 6 deletions
@@ -9,6 +9,13 @@
#include <KernelExport.h>
typedef struct generic_io_vec {
generic_addr_t base;
generic_size_t length;
} generic_io_vec;
#ifdef IS_USER_ADDRESS
static inline status_t
get_iovecs_from_user(const iovec* userVecs, size_t vecCount, iovec*& vecs,
bool permitNull = false)
@@ -46,6 +53,7 @@ get_iovecs_from_user(const iovec* userVecs, size_t vecCount, iovec*& vecs,
return B_OK;
}
#endif
#endif // _UTIL_IOVEC_SUPPORT_H