The Virtual Interface Architecture

Synopsis
VIP_RETURN VipCreatePtag( IN VIP_NIC_HANDLE NicHandle, OUT VIP_PROTECTION_HANDLE *Ptag )
Parameters
| NicHandle : | The NIC handle associated with the protection tag. |
| Ptag : | The new protection tag. |
Description
The VipCreatePtag function creates a new protection tag for the calling process. The protection tag is subsequently associated with VI endpoints via the VipCreateVi function, as well as memory regions via the VipRegisterMem function. A process may request multiple protection tags. For all memory references by the VI Provider, including Descriptors and message buffers, the protection tag of the VI instance, and the memory region, must match in order to pass the memory protection check.
The Protection Tag is an element in the VI attributes data structure and the Memory Region Attributes data structure. The protection tag of a memory region and/or a VI can be changed by changing their attributes.
Returns
VIP_SUCCESS The memory protection tag was successfully created.
VIP_ERROR_RESOURCE The operation failed due to insufficient resources.
VIP_INVALID_PARAMETER One of the parameters was invalid.
Synopsis
VIP_RETURN VipDestroyPtag( IN VIP_NIC_HANDLE NicHandle, IN VIP_PROTECTION_HANDLE Ptag )
Parameters