Updated: April 19, 2023 |
Set the address space ID attribute in a spawn attributes object
#include <spawn.h> int posix_spawnattr_setasid( posix_spawnattr_t* attrp, uint32_t asid);
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The posix_spawnattr_setasid() function sets the value of the address space ID in the spawn attributes object pointed to by attrp. You must have already initialized this object by calling posix_spawnattr_init().
The asid value is used as the address space ID of the child process created by a spawn operation if POSIX_SPAWN_SETASID is set in the spawn flags. By default, a process spawned with posix_spawn() or posix_spawnp() inherits the address space ID from the parent process.
In order for the asid setting to take effect:
For more information about spawn attributes, see the entry for posix_spawn().
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | Yes |
Signal handler | Yes |
Thread | Yes |