NXContextGetInfo

Returns information about the specified context.

Library:LibC
Classification:NKS
Service:Threads

Syntax

  #include <nks/thread.h> 
   
  int NXContextGetInfo (
     NXContext_t        ctx,
     NXContextInfo_t   *info);
  

Parameters

ctx

(IN) Specifies the context for which information is returned.

info

(OUT) Points to a context information buffer.

Return Values

If successful, returns 0; otherwise returns a nonzero error code.

Decimal

Hex

Constant

Description

9

0x09

NX_EINVAL

The specified context is invalid.

Remarks

The information in the NXContextInfo_t structure can become stale. The information on the start function and the argument to the start function are based on values used when the context is allocated and are valid only if the context is not currently bound and the execution state has not been changed from the values used to initialize the context.

See Also