From owner-cvs-all Wed Jun 6 15: 0:14 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id F0A5737B406; Wed, 6 Jun 2001 15:00:04 -0700 (PDT) (envelope-from peter@FreeBSD.org) Received: (from peter@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f56M04D93538; Wed, 6 Jun 2001 15:00:04 -0700 (PDT) (envelope-from peter) Message-Id: <200106062200.f56M04D93538@freefall.freebsd.org> From: Peter Wemm Date: Wed, 6 Jun 2001 15:00:04 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/usb usb.c usb_port.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG peter 2001/06/06 15:00:04 PDT Modified files: sys/dev/usb usb.c usb_port.h Log: Activate the kthread mechanism for doing usb bus discovery. This means that device add/remove will work without usbd running. usbd is still used for execing stuff, but that is all now. Ideally it could be replaced by a devd some day. Until now, usbd had to be running so that the USB_DISCOVER ioctl could be called to walk the tree when an attachment status change was noticed. Among the changes: - when a detach happens, remove any pending 'attach' messages or the system suffers from whiplash from exec moused / kill moused loops if you do lots of attach/detach and later start usbd. - tweaks related to kthread differences - disable the select handler for the old interface (never return success). I have not removed it yet or old usbd's will abort. That can get removed later once usbd is cleaned up and things have stabilized for a few weeks. - get Giant in the kthread. - a couple of minor potential bug fixes (usb_nevents vs malloc failure etc) Pre-approved by: n_hibma (ages and ages ago) Revision Changes Path 1.40 +47 -47 src/sys/dev/usb/usb.c 1.35 +3 -4 src/sys/dev/usb/usb_port.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message