[RFC] Outline of USB process integration in the kernel taskqueue system

Matthew Fleming mdf356 at gmail.com
Thu Nov 4 21:49:24 UTC 2010


On Thu, Nov 4, 2010 at 2:22 PM, John Baldwin <jhb at freebsd.org> wrote:
> On Thursday, November 04, 2010 4:15:16 pm Hans Petter Selasky wrote:
>> I think that if a task is currently executing, then there should be a drain
>> method for that. I.E. two methods: One to stop and one to cancel/drain. Can
>> you implement this?
>
> I agree, this would also be consistent with the callout_*() API if you had
> both "stop()" and "drain()" methods.

Here's my proposed code.  Note that this builds but is not yet tested.


Implement a taskqueue_cancel(9), to cancel a task from a queue.

Requested by:       hps
Original code:      jeff
MFC after:  1 week


http://people.freebsd.org/~mdf/bsd-taskqueue-cancel.diff

Thanks,
matthew


More information about the freebsd-usb mailing list