task_private_data. STMicroelectronics OS20
Advertisement
Advertisement
OS20 User Manual 16.2 OS20 function descriptions
task_private_data
Retrieve a task’s private data pointer
Synopsis
#include <task.h> void* task_private_data( task_t* task, void* cookie);
Arguments task_t* task void* cookie
Pointer to the task structure
Unique identifier
Results task_private_data() returns the address of the private data registered for the task pointed to by task , under the unique identifier cookie , or NULL if no data has been registered.
Errors
None
Description task_private_data() retrieves the address of the private data for the task identified by task , under the unique identifier cookie . If task is NULL the calling task is used for the operation. This interface is intended to be used by libraries which have to store private data on a per task basis.
If this API is used prior to kernel initialization, then the operation is performed on the root task.
Callable from
Tasks only
See also
272
ADCS 7473749D
Download
Advertisement