mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
5bd2e97c86
Add fn and fn_arg members into struct kernel_clone_args and test for them in copy_thread (instead of testing for PF_KTHREAD | PF_IO_WORKER). This allows any task that wants to be a user space task that only runs in kernel mode to use this functionality. The code on x86 is an exception and still retains a PF_KTHREAD test because x86 unlikely everything else handles kthreads slightly differently than user space tasks that start with a function. The functions that created tasks that start with a function have been updated to set ".fn" and ".fn_arg" instead of ".stack" and ".stack_size". These functions are fork_idle(), create_io_thread(), kernel_thread(), and user_mode_thread(). Link: https://lkml.kernel.org/r/20220506141512.516114-4-ebiederm@xmission.com Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> |
||
---|---|---|
.. | ||
cpu | ||
syscalls | ||
.gitignore | ||
asm-offsets.c | ||
dma.c | ||
entry.S | ||
exceptions.c | ||
ftrace.c | ||
head.S | ||
hw_exception_handler.S | ||
irq.c | ||
kgdb.c | ||
Makefile | ||
mcount.S | ||
microblaze_ksyms.c | ||
misc.S | ||
module.c | ||
process.c | ||
prom.c | ||
ptrace.c | ||
reset.c | ||
setup.c | ||
signal.c | ||
stacktrace.c | ||
sys_microblaze.c | ||
syscall_table.S | ||
timer.c | ||
traps.c | ||
unwind.c | ||
vmlinux.lds.S |