taskqueue_create() name parameter lieftime

Andriy Gapon avg at freebsd.org
Tue Nov 16 12:20:52 UTC 2010


taskqueue_create() documentation never explicitly says this, but current
taskqueue_create() implementation just stores a 'name' pointer parameter
internally.  Thus it depends on the 'name' having a life time encompassing that of
the taskqueue.
I think that alternatively we could have copied the name (or a portion of it) into
an internal buffer.
I don't any argument for either approach, just curious which one looks more
preferable from general (FreeBSD, kernel) programming practices point of view.

Thanks!
-- 
Andriy Gapon


More information about the freebsd-current mailing list