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:
committed by
waddlesplash
parent
47b66bb676
commit
65cdc13e7d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user