Re: removing tq_name [Was: taskqueue_create() name parameter lieftime]

From: John Baldwin <jhb_at_freebsd.org>
Date: Mon, 22 Nov 2010 09:30:23 -0500
On Saturday, November 20, 2010 5:00:34 am Andriy Gapon wrote:
> on 19/11/2010 18:58 John Baldwin said the following:
> > On Friday, November 19, 2010 11:20:04 am Andriy Gapon wrote:
> >> BTW, tq_name doesn't seem to be used anywhere at all.
> >> Perhaps just drop it?  But still could be useful in a debugger, though.
> > 
> > If it's not used anywhere I would just drop it.
> > 
> 
> struct taskqueue is defined privately in sys/kern/subr_taskqueue.c and tq_name
> is used "write-only" in _taskqueue_create().
> 
> So, no use for tq_name at all?

No.  Especially since the structure is private it can always be revived if a
use is found for it.  You can probably leave the taskqueue_create() API the
same for now though.

-- 
John Baldwin
Received on Mon Nov 22 2010 - 13:53:40 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:09 UTC