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

Function cloneuio

freebsd/kern/subr_uio.c:400–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400struct uio *
401cloneuio(struct uio *uiop)
402{
403 struct uio *uio;
404 int iovlen;
405
406 iovlen = uiop->uio_iovcnt * sizeof (struct iovec);
407 uio = malloc(iovlen + sizeof *uio, M_IOV, M_WAITOK);
408 *uio = *uiop;
409 uio->uio_iov = (struct iovec *)(uio + 1);
410 bcopy(uiop->uio_iov, uio->uio_iov, iovlen);
411 return (uio);
412}
413
414/*
415 * Map some anonymous memory in user space of size sz, rounded up to the page

Callers 10

uiocopyFunction · 0.85
sys_sctp_generic_sendmsgFunction · 0.85
sys_sctp_generic_recvmsgFunction · 0.85
kern_senditFunction · 0.85
kern_recvitFunction · 0.85
dofilereadFunction · 0.85
dofilewriteFunction · 0.85
vn_io_fault1Function · 0.85
log_consoleFunction · 0.85

Calls 1

mallocFunction · 0.85

Tested by

no test coverage detected