SWI_create
2-432
The mailbox attribute is used either to determine whether to post the SWI
or as a value that can be evaluated within the SWI function.
All default attribute values are contained in the constant SWI_ATTRS,
which can be assigned to a variable of type SWI_Attrs prior to calling
SWI_create.
SWI_create calls MEM_alloc to dynamically create the object’s data
structure. MEM_alloc must acquire a lock to the memory before
proceeding. If another thread already holds a lock to the memory, then
there is a context switch. The segment from which the object is allocated
is described by the DSP/BIOS objects property in the MEM Module, page
2–205.
Constraints and
Calling Context
❏
SWI_create cannot be called from a SWI or HWI.
❏
The fxn attribute cannot be NULL.
❏
The priority attribute must be less than or equal to 14 and greater
than or equal to 1.
See Also