]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - include/linux/kthread.h
kthread: save thread function
authorJ. Bruce Fields <bfields@redhat.com>
Wed, 6 May 2020 16:09:34 +0000 (12:09 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Sat, 9 May 2020 01:23:10 +0000 (21:23 -0400)
commit52782c92ac85c4e393eb4a903a62e6c24afa633f
treeff14ce08344fd48a5d6228527bbd949c012a13d4
parent31fb4bf545e230f2c7db7e64cf012c67a8d374df
kthread: save thread function

It's handy to keep the kthread_fn just as a unique cookie to identify
classes of kthreads.  E.g. if you can verify that a given task is
running your thread_fn, then you may know what sort of type kthread_data
points to.

We'll use this in nfsd to pass some information into the vfs.  Note it
will need kthread_data() exported too.

Original-patch-by: Tejun Heo <tj@kernel.org>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
include/linux/kthread.h
kernel/kthread.c