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

Function cuio_copydata

freebsd/opencrypto/criov.c:84–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82} while (0)
83
84static void
85cuio_copydata(struct uio* uio, int off, int len, caddr_t cp)
86{
87 struct iovec *iov = uio->uio_iov;
88 int iol = uio->uio_iovcnt;
89 unsigned count;
90
91 CUIO_SKIP();
92 while (len > 0) {
93 KASSERT(iol >= 0, ("%s: empty", __func__));
94 count = min(iov->iov_len - off, len);
95 bcopy(((caddr_t)iov->iov_base) + off, cp, count);
96 len -= count;
97 cp += count;
98 off = 0;
99 iol--;
100 iov++;
101 }
102}
103
104static void
105cuio_copyback(struct uio* uio, int off, int len, c_caddr_t cp)

Callers 1

crypto_copydataFunction · 0.85

Calls 1

minFunction · 0.85

Tested by

no test coverage detected