Date: Tue, 16 Nov 2010 14:20:47 +0200 From: Andriy Gapon <avg@freebsd.org> To: freebsd-current@freebsd.org Subject: taskqueue_create() name parameter lieftime Message-ID: <4CE2771F.8020109@freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CE2771F.8020109>