Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jun 2001 15:00:04 -0700 (PDT)
From:      Peter Wemm <peter@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/dev/usb usb.c usb_port.h
Message-ID:  <200106062200.f56M04D93538@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106062200.f56M04D93538>