Date: Thu, 4 Jan 1996 11:44:40 -0700 (MST) From: Terry Lambert <terry@lambert.org> To: bde@zeta.org.au (Bruce Evans) Cc: hackers@freebsd.org, terry@lambert.org Subject: Re: OK, I'm stumped... Message-ID: <199601041844.LAA18218@phaeton.artisoft.com> In-Reply-To: <199601040546.QAA15201@godzilla.zeta.org.au> from "Bruce Evans" at Jan 4, 96 04:46:09 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> >Why would anyone ever specify a second argument to uiomove() that > >was less than the largest iov->iov_len for the iov list in the > >uio structure that was passed in? > > Because iov->iov_len might be as large as INT_MAX and it may be hard > to allocate a large enough kernel buffer. > > char buf[SMALLSIZE]; > ... > r = uiomove(buf, sizeof buf, uio); I agree that this is a possibility. But I didn't see this usage in the kernel. Did I not look hard enough? Regards, Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601041844.LAA18218>