public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* May the worker function free its struct_work (plus container)?
@ 2010-05-09 22:47 Leon Woestenberg
  2010-05-10  4:52 ` Yong Zhang
  0 siblings, 1 reply; 4+ messages in thread
From: Leon Woestenberg @ 2010-05-09 22:47 UTC (permalink / raw)
  To: linux-kernel

Hello,

may the worker function kfree() it's own work data structure?

/* worker function */
static void engine_service_work(struct work_struct *work)
{
  struct  foobar_container_struct *foobar;
  foobar = container_of(work, struct foobar, work);
  /* ...perform some work... */
  kfree(foobar);
}

Thanks,
-- 
Leon

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-05-11  1:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-09 22:47 May the worker function free its struct_work (plus container)? Leon Woestenberg
2010-05-10  4:52 ` Yong Zhang
2010-05-10 10:18   ` Leon Woestenberg
2010-05-11  1:27     ` Yong Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox