MCPcopy Create free account
hub / github.com/apache/nuttx / task_spawn

Function task_spawn

sched/task/task_spawn.c:310–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308 ****************************************************************************/
309
310int task_spawn(FAR const char *name, main_t entry,
311 FAR const posix_spawn_file_actions_t *file_actions,
312 FAR const posix_spawnattr_t *attr,
313 FAR char * const argv[], FAR char * const envp[])
314{
315 pid_t pid = INVALID_PROCESS_ID;
316 int ret;
317
318 sinfo("name=%s entry=%p file_actions=%p attr=%p argv=%p\n",
319 name, entry, file_actions, attr, argv);
320
321 ret = nxtask_spawn_exec(&pid, name, entry,
322 file_actions != NULL ? *file_actions : NULL,
323 attr, argv, envp);
324
325 return ret >= 0 ? pid : ret;
326}
327
328#endif /* CONFIG_BUILD_KERNEL */

Callers 3

nx_start_applicationFunction · 0.85
uart_launch_workerFunction · 0.85
cxd5610_gnss_initializeFunction · 0.85

Calls 1

nxtask_spawn_execFunction · 0.85

Tested by

no test coverage detected