lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 7 Mar 2008 13:49:35 +0800 From: "Peter Teoh" <htmldeveloper@...il.com> To: LKML <linux-kernel@...r.kernel.org> Subject: What is the difference between kernel_thread() and kthread_create()? According to Documentation/feature-removal-schedule.txt, kernel_thread() is supposed to be replaced by kthread_create(). I saw a few patches doing these. Seemingly, NO DIFFERENCE, just replace the kernel_thread() with kthread_create(), but sometimes it replace it with kthread_run() instead (thin wrapper around kthread_create()) Still not quite sure why yet. But more fundamental is the file init/main.c: which have a kernel_thread() to create the first init task. Only a few kernel_thread() API left, mostly exotic architecture. But this central figure does not get replaced - is there a reason for it? So question is - is there any difference between kernel_thread() and kthread_create() in the context of init/main.c? -- Regards, Peter Teoh -- 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