cvs commit: src/sys/kern lwkt_serialize.c

Matthew Dillon dillon at
Tue May 24 14:22:28 PDT 2005

dillon      2005/05/24 14:22:06 PDT

DragonFly src repository

  Added files:
    sys/kern             lwkt_serialize.c 
  (add missing file related to last commit)
  Get rid of bus_{disable,enable}_intr(), it wasn't generic enough for
  our needs.
  Implement some generic atomic.h functions to aid in the implementation of
  a low level mutex.
  Implement a generic low level sleep-mutex serializer, kern/lwkt_serialize.c.
  The serializer is designed to be a replacement for SPL calls but may also
  be used for other very low level work (e.g. lockmgr interlocks).
  Add a serializer argument to BUS_SETUP_INTR().  When non-NULL, the interrupt
  handler will no longer be protected by an SPL so e.g. spl*() will no
  longer protect against that device's interrupts.
  The IF queueing and dequeueing mechanisms may no longer depend on outside
  SPL state because network driver interrupt handlers are no longer required to
  enter splnet().  Use critical sections for the moment.  The IFQ and
  IFF_OACTIVE interactions are not yet MP safe.

More information about the Commits mailing list