]> git.baikalelectronics.ru Git - kernel.git/commit
kthread: implement kthread_data()
authorTejun Heo <tj@kernel.org>
Tue, 29 Jun 2010 08:07:09 +0000 (10:07 +0200)
committerTejun Heo <tj@kernel.org>
Tue, 29 Jun 2010 08:07:09 +0000 (10:07 +0200)
commitacb59a3a992f3e57a6c66c1a288c5925e25a72d5
tree4e5fd250d8625e032250fd02101c3b6ce595cbbf
parent8883ce7fa3815f7fb657ab0e038e34a3825b70ee
kthread: implement kthread_data()

Implement kthread_data() which takes @task pointing to a kthread and
returns @data specified when creating the kthread.  The caller is
responsible for ensuring the validity of @task when calling this
function.

Signed-off-by: Tejun Heo <tj@kernel.org>
include/linux/kthread.h
kernel/kthread.c