getallocresourcetag

Returns the resource tag of the NLM owning the calling thread.

Library:LibC
Service:Library

Syntax

  #include <library.h> 
   
  rtag_t getallocresourcetag ( void );
  

Return Values

If successful, returns the resource tag allocated for the NLM by LibC. Otherwise, returns NULL if the calling thread has no context.

Remarks

LibC allocates a resource tag for an NLM when it needs to allocate memory for the NLM. LibC uses the tag for malloc and other functions when threads in the NLM make such requests.