From owner-freebsd-hackers Sun Aug 13 9:10:52 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from unix.worldpath.net (unix.worldpath.net [206.152.180.10]) by hub.freebsd.org (Postfix) with ESMTP id 6DA3137B8DA for ; Sun, 13 Aug 2000 09:10:46 -0700 (PDT) (envelope-from waldroni@lr.net) Received: from camry ([207.3.148.94]) by unix.worldpath.net (8.9.3/8.9.3(WPI)) with SMTP id MAA17918 for ; Sun, 13 Aug 2000 12:10:44 -0400 (EDT) Message-ID: <003e01c00540$fecf05c0$0100000a@waldron.house> Reply-To: "Isaac Waldron" From: "Isaac Waldron" To: Subject: Size limits for kld's? Date: Sun, 13 Aug 2000 12:10:23 -0400 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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