NAME | SYNOPSIS | FEATURES | DESCRIPTION | RETURN VALUE | ERRORS | ATTRIBUTES | SEE ALSO
#include <pd/chPd.h>int padSet(KnCap *actorcap, PdKey key, const void *value);
PRIVATE-DATA
The padSet function associates an actor-specific value with a key (obtained via a previous call to padKeyCreate (2K)) for the actor whose capability is given by actorcap.
If actorcap is K_MYACTOR, the current actor is used.
You can only call padSet from a supervisor actor, but actorcap can designate any local actor.
Different actors may bind different values to the same key. These values are typically pointers to blocks of dynamically allocated memory that have been reserved for use by a controlling actor.
Calling padSet from a destructor may result in lost storage.
Upon successful completion a value of 0 is returned. Otherwise, a positive error code is returned.
The key value is invalid, or actorcap is an inconsistent actor capability.
There is insufficient memory to associate the value with the key.
The Private Data Manager is unreachable.
This call is reserved for SUPERVISOR actors.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | FEATURES | DESCRIPTION | RETURN VALUE | ERRORS | ATTRIBUTES | SEE ALSO