Date: Mon, 11 Jan 1999 14:34:43 -0800 (PST) From: Matthew Jacob <mjacob@feral.com> To: freebsd-hackers@FreeBSD.ORG Subject: what is the meaning of this useless code? Message-ID: <Pine.LNX.4.04.9901111433440.18573-100000@feral-gw>
index | next in thread | raw e-mail
in kern_physio.c:
struct buf *
phygetvpbuf(dev_t dev, int resid)
{
struct cdevsw *bdsw;
int maxio;
bdsw = cdevsw[major(dev)];
if ((bdsw == NULL) || (bdsw->d_bmaj == -1))
return getpbuf();
maxio = bdsw->d_maxio;
if (resid > maxio)
resid = maxio;
return getpbuf();
}
why is resid being truyncaated and maxio being set when this has no
effect?
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.04.9901111433440.18573-100000>
