IP_TaskIntern

Cogent API and Utilities: Version 4.1
Prev |  | Next

# `IP_TaskIntern`

`IP_TaskIntern` -- adds a task to a process's task cache.

## Syntax

``IP_Task* IP_TaskIntern`(IP_Task* task);`

## Arguments

`task`

  A pointer to a task structure.

## Returns

Returns `task` on success, or `NULL` if there is already a matching task in the cache.

## Description

This function causes the `task` to be added to the task cache for this process. If a task matching the `nid`, `pid` and `chid` of the `task` already exists in the cache, then the new task is not added to the cache, and `NULL` is returned.

## See Also

Task Structure Caching, `IP_TaskUnintern`

Prev | Home | Next
`IP_TaskInitAsyncWrites` | Up | `IP_TaskNew`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.