thread_create(2)

DESCRIPTION

Creates a user thread in the current process.

SYNOPSIS

long thread_create(entry, stack, argument);

RETURN VALUE

  • Returns a non-negative result on success. Negative values are ABI errno codes.

ERRORS

  • -EAGAIN .
  • -EFAULT .
  • -ESRCH .

ABI

Arguments enter through the direct syscall ABI; validation is performed before entering the process subsystem.