Lines Matching refs:uio_resid
568 if (__predict_false(uio->uio_resid < sizeof(struct nlmsghdr))) in nl_sosend()
571 if (__predict_false(uio->uio_resid > sb->sb_hiwat)) in nl_sosend()
578 len = roundup2(uio->uio_resid, 8) + SCRATCH_BUFFER_SIZE; in nl_sosend()
580 len += roundup2(uio->uio_resid, 8); in nl_sosend()
582 nb->datalen = uio->uio_resid; in nl_sosend()
583 error = uiomove(&nb->data[0], uio->uio_resid, uio); in nl_sosend()
737 if (uio->uio_resid < len + hdr->nlmsg_len) { in nl_soreceive()
739 uio->uio_resid; in nl_soreceive()
747 } else if (len == 0 && uio->uio_resid > 0) { in nl_soreceive()
749 partlen = uio->uio_resid; in nl_soreceive()
807 uio->uio_resid -= overflow; in nl_soreceive()
808 MPASS(uio->uio_resid < 0); in nl_soreceive()
810 MPASS(uio->uio_resid >= 0); in nl_soreceive()