mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-20 05:56:32 +00:00
new: kthread机制
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
* @param arg 传递给测试函数的参数
|
||||
* @return pid_t 测试内核线程的pid
|
||||
*/
|
||||
pid_t ktest_start(uint64_t (*func)(uint64_t arg), uint64_t arg)
|
||||
pid_t ktest_start(int (*func)(void* arg), void* arg)
|
||||
{
|
||||
return kernel_thread(func, arg, 0);
|
||||
}
|
Reference in New Issue
Block a user