MCPcopy Create free account
hub / github.com/axboe/liburing / t_iovec_data_length

Function t_iovec_data_length

test/helpers.c:531–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

529}
530
531size_t t_iovec_data_length(struct iovec *iov, unsigned iov_len)
532{
533 size_t sz = 0;
534 int i;
535
536 for (i = 0; i < iov_len; i++)
537 sz += iov[i].iov_len;
538 return sz;
539}
540
541#define t_min(a, b) ((a) < (b) ? (a) : (b))
542

Callers 5

t_compare_data_iovecFunction · 0.85
t_copy_verify_regvecFunction · 0.85
test_regvec_cmdFunction · 0.85
test_vecFunction · 0.85
test_readv_fixedFunction · 0.85

Calls

no outgoing calls

Tested by 3

test_regvec_cmdFunction · 0.68
test_vecFunction · 0.68
test_readv_fixedFunction · 0.68