Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Aug 2000 12:10:23 -0400
From:      "Isaac Waldron" <waldroni@lr.net>
To:        <freebsd-hackers@freebsd.org>
Subject:   Size limits for kld's?
Message-ID:  <003e01c00540$fecf05c0$0100000a@waldron.house>

next in thread | raw e-mail | index | archive | help
I'm working on getting plex86 (formerly FreeMWare) to run under FreeBSD,
which requires writing a device driver.  I wrote up a simple kld to
handle this, and a minimal version works perfectly.  The problem I'm
having crops up when I add in all the other functionality that needs to
be included.  The new module is much larger than the original, and
kldstat reports its size as 13000, whereas the older one was around 2500
or so.

Unfortunately, while the open and close functions I wrote are called
correctly, the ioctl function is never called.  A call to ioctl(filehdl,
PLEX86_IOCTL, int) returns an error, and a perror("ioctl") prints
"ioctl: Bad Address."  I know that the ioctl number is correct, and it
was defined with the proper _IO* macro.  The file handle also opens just
fine, as the printf's in my open function are executed and show on the
console.  AFAIK, that error would be caused by an EFAULT being returned
somewhere in the chain.

What I'm asking is, what would cause some of the functions referenced by
my driver's cdevsw to not be able to be called?  Are there size limits
on functions in a kld?  Or a limit on the total size of a kld?

Isaac Waldron
waldroni at lr dot net




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003e01c00540$fecf05c0$0100000a>