[ofw] [RFC] [PATCH 1/2] work_queue: new abstraction for queuing work

Sean Hefty sean.hefty at intel.com
Thu May 21 11:02:51 PDT 2009


>	Creating and Deleting Work Items
>	Drivers can use one of the following two techniques to
>	create and delete work items:
>
>	* Use each work item once: create the work item when you need it
>	  and delete it immediately after it is used.  This technique is
>	  useful for drivers that require infrequent use (less often than
>	  once per minute) of a small number of work items...
>
>	* Create one or more work items that your driver requeues as
>	  necessary. This technique is useful for drivers that use work
>	  items frequently (more often than once per minute), or if your
>	  driver's EvtInterruptDpc callback function cannot easily handle
>	  a STATUS_INSUFFICIENT_RESOURCES return value from WdfWorkItemCreate.

If this applies only to WDFWORKITEMs and not IO_WORKITEMs, then I agree that the
pool of IO_WORKITEMs can be removed from the work queue abstraction.




More information about the ofw mailing list