aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys/abd.h
diff options
context:
space:
mode:
authorRob Norris <[email protected]>2024-07-11 07:37:30 +1000
committerTony Hutter <[email protected]>2024-08-22 16:22:24 -0700
commitba2209ec9e2166dd9c6d80b61b4aed3dd457be4b (patch)
tree1181168673c0ed17100171d98d2b6aa7ff9686ff /include/sys/abd.h
parent9e15877dfb3e80021551301aac71976216b3fe1b (diff)
abd_get_from_buf_struct: wrap existing buf with ABD stored on stack
This allows a simple "wrapping" ABD for an existing linear buffer to be allocated on the stack, avoiding an allocation. Sponsored-by: Klara, Inc. Sponsored-by: Wasabi Technology, Inc. Signed-off-by: Rob Norris <[email protected]>
Diffstat (limited to 'include/sys/abd.h')
-rw-r--r--include/sys/abd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sys/abd.h b/include/sys/abd.h
index 67bf5e802..567b88c0f 100644
--- a/include/sys/abd.h
+++ b/include/sys/abd.h
@@ -93,6 +93,7 @@ abd_t *abd_get_offset_size(abd_t *, size_t, size_t);
abd_t *abd_get_offset_struct(abd_t *, abd_t *, size_t, size_t);
abd_t *abd_get_zeros(size_t);
abd_t *abd_get_from_buf(void *, size_t);
+abd_t *abd_get_from_buf_struct(abd_t *, void *, size_t);
void abd_cache_reap_now(void);
/*