thread_exit(2)

DESCRIPTION

Terminates the calling user thread.

SYNOPSIS

long thread_exit(long result);

RETURN VALUE

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

ERRORS

    • Does not return.

ABI

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