thread_create2(2)

DESCRIPTION

Creates a user thread with two arguments.

SYNOPSIS

long thread_create2(entry, stack, argument0, argument1);

RETURN VALUE

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

ERRORS

  • -EAGAIN
    • The process thread limit or memory limit was reached.
  • -EFAULT
    • The entry point, stack, or argument pointer is invalid.
  • -ESRCH
    • There is no current process.

ABI

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