mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-09 19:36:47 +00:00
14 lines
338 B
C
14 lines
338 B
C
#include "ktest.h"
|
|
#include <process/process.h>
|
|
|
|
/**
|
|
* @brief 开启一个新的内核线程以进行测试
|
|
*
|
|
* @param func 测试函数
|
|
* @param arg 传递给测试函数的参数
|
|
* @return pid_t 测试内核线程的pid
|
|
*/
|
|
pid_t ktest_start(uint64_t (*func)(uint64_t arg), uint64_t arg)
|
|
{
|
|
return kernel_thread(func, arg, 0);
|
|
} |