Re: [PATCH repost] sched: export sched_set/getaffinity to modules
From: Oleg Nesterov <oleg@redhat.com>
Date: 2010-07-01 14:36:36
Also in:
kvm, lkml
From: Oleg Nesterov <oleg@redhat.com>
Date: 2010-07-01 14:36:36
Also in:
kvm, lkml
On 07/01, Peter Zijlstra wrote:
On Thu, 2010-07-01 at 16:08 +0300, Michael S. Tsirkin wrote:quoted
Maybe it makes sense to add kthread_clone (in addition to kthread_create) that would do what you suggest? If yes, any hints on an implementation?I think that's called kernel_thread() see kernel/kthread.c:create_kthread().
Well, strictly speaking kernel_thread() doesn't create the kernel thread. Unless the caller is the kernel thread. And daemonize() is deprecated. kernel_thread() just forks the CLONE_VM + flags child. Oleg.