[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <AANLkTikTPkLID3e8HpT1jMeiF9tQ6-7oJWQBfiRF7xUN@mail.gmail.com>
Date: Mon, 10 May 2010 00:47:23 +0200
From: Leon Woestenberg <leon.woestenberg@...il.com>
To: linux-kernel@...r.kernel.org
Subject: May the worker function free its struct_work (plus container)?
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists