From owner-freebsd-hackers Fri Feb 8 13:51:16 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from hotmail.com (f127.law3.hotmail.com [209.185.241.127]) by hub.freebsd.org (Postfix) with ESMTP id F020A37B41A for ; Fri, 8 Feb 2002 13:51:12 -0800 (PST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 8 Feb 2002 13:51:12 -0800 Received: from 205.158.104.176 by lw3fd.law3.hotmail.msn.com with HTTP; Fri, 08 Feb 2002 21:51:12 GMT X-Originating-IP: [205.158.104.176] From: "Srinivas Dharmasanam" To: n_hibma@qubesoft.com Cc: freebsd-hackers@freebsd.org Subject: USB device framework in FreeBSD 4.2 Date: Fri, 08 Feb 2002 13:51:12 -0800 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 08 Feb 2002 21:51:12.0729 (UTC) FILETIME=[B9B0C490:01C1B0EA] Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Nick, I'm trying to use a modified version of the ugen driver in FreeBSD 4.2 to control a USB device from the kernel space and am getting a kernel crash with a page fault trap (trap_fatal) when I try to do open on this device. From a user process, I am able to open this device with no problem but when I call the underlying open() function from an ISR (so that I get kernel mode), I get this fatal trap. The backtrace of the kernel core dump is pasted below. Note that the usbd_transfer() function in usbdi.c has the call tsleep() that is causing this trap. Can you please let me know how I would be able to access a USB device from the kernel space? Do I have to write another USB driver along with the usbdi.c interface or is there a way I can do this with the existing USB device framework? Thanks, -Srinivas _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message