MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / sys_clone

Function sys_clone

components/lwp/lwp_syscall.c:3481–3484  ·  view source on GitHub ↗

* @brief Creates a new process or thread (clone). * * This system call creates a new process or thread by duplicating the calling process. * The new process/thread begins execution by calling the function specified in the * `arg[]` array, which typically contains the necessary arguments or function pointer. * It is used to implement process/thread creation in the system and is often a lower-l

Source from the content-addressed store, hash-verified

3479 * creation can lead to resource exhaustion, deadlocks, or other synchronization issues.
3480 */
3481rt_weak long sys_clone(void *arg[])
3482{
3483 return _sys_clone(arg);
3484}
3485
3486static void lwp_struct_copy(struct rt_lwp *dst, struct rt_lwp *src)
3487{

Callers

nothing calls this directly

Calls 1

_sys_cloneFunction · 0.85

Tested by

no test coverage detected