MCPcopy Create free account
hub / github.com/F-Stack/f-stack / abd_cmp_buf_off

Function abd_cmp_buf_off

freebsd/contrib/openzfs/module/zfs/abd.c:862–868  ·  view source on GitHub ↗

* Compare the contents of abd to buf. (off is the offset in abd.) */

Source from the content-addressed store, hash-verified

860 * Compare the contents of abd to buf. (off is the offset in abd.)
861 */
862int
863abd_cmp_buf_off(abd_t *abd, const void *buf, size_t off, size_t size)
864{
865 struct buf_arg ba_ptr = { (void *) buf };
866
867 return (abd_iterate_func(abd, off, size, abd_cmp_buf_off_cb, &ba_ptr));
868}
869
870static int
871abd_copy_from_buf_off_cb(void *buf, size_t size, void *private)

Callers 1

abd_cmp_bufFunction · 0.85

Calls 1

abd_iterate_funcFunction · 0.85

Tested by

no test coverage detected