Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Jan 2007 23:21:07 +0000 (UTC)
From:      Alfred Perlstein <alfred@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/dev/usb usb_ethersubr.c usb_ethersubr.h
Message-ID:  <200701082321.l08NL7sH016758@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
alfred      2007-01-08 23:21:07 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/usb          usb_ethersubr.c usb_ethersubr.h 
  Log:
  Add the following functions to abstract away the creation of task threads
  for usb.  I hope that this will eventually be used for generic devices
  that need full fledged blocking threads for event processing.
  
  Create a taskqueue:
  void usb_ether_task_init(device_t, int, struct usb_taskqueue *);
  
  Enqueue a task:
  void usb_ether_task_enqueue(struct usb_taskqueue *, struct task *);
  
  Wait for all tasks queued to complete:
  void usb_ether_task_drain(struct usb_taskqueue *, struct task *);
  
  Destroy the taskqueue:
  void usb_ether_task_destroy(struct usb_taskqueue *);
  
  Revision  Changes    Path
  1.23      +30 -0     src/sys/dev/usb/usb_ethersubr.c
  1.12      +9 -0      src/sys/dev/usb/usb_ethersubr.h



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