The DOCA UAR represents a user mapped memory
◆ doca_uar_allocation_type
UAR allocation type.
| Enumerator |
|---|
| DOCA_UAR_ALLOCATION_TYPE_BLUEFLAME | |
| DOCA_UAR_ALLOCATION_TYPE_NONCACHE | |
| DOCA_UAR_ALLOCATION_TYPE_NONCACHE_DEDICATED | |
Definition at line 52 of file doca_uar.h.
◆ doca_uar_create()
Creates a UAR object.
- Parameters
-
| [in] | dev | doca device |
| [in] | allocation_type | doca_uar_allocation_type |
| [out] | uar | uar object |
- Returns
- DOCA_SUCCESS - in case of success. doca_error code - in case of failure:
- DOCA_ERROR_INVALID_VALUE - received invalid input.
- DOCA_ERROR_DRIVER - in case of error in a DOCA driver call.
◆ doca_uar_destroy()
Destroy UAR object.
- Parameters
-
- Returns
- DOCA_SUCCESS - in case of success. doca_error code - in case of failure:
- DOCA_ERROR_INVALID_VALUE - received invalid input.
◆ doca_uar_dpa_create()
Creates a DPA UAR object.
- Parameters
-
| [in] | dpa | doca dpa ctx to create UAR for |
| [out] | uar | uar object |
- Returns
- DOCA_SUCCESS - in case of success. doca_error code - in case of failure:
- DOCA_ERROR_INVALID_VALUE - received invalid input.
- DOCA_ERROR_DRIVER - in case of error in a DOCA driver call.
◆ doca_uar_id_get()
Returns the uar id.
- Parameters
-
| [in] | uar | uar object |
| [out] | id | uar object id |
- Returns
- DOCA_SUCCESS - in case of success. doca_error code - in case of failure:
- DOCA_ERROR_INVALID_VALUE - received invalid input.
◆ doca_uar_page_get()
Returns the uar page address.
- Note
- Not supported for DPA UAR
- Parameters
-
| [in] | uar | uar object |
| [out] | page | uar page address |
- Returns
- DOCA_SUCCESS - in case of success. doca_error code - in case of failure:
- DOCA_ERROR_INVALID_VALUE - received invalid input.
◆ doca_uar_reg_addr_get()
Returns the uar register address.
- Note
- Not supported for DPA UAR
- Parameters
-
| [in] | uar | uar object |
| [out] | reg | uar register address |
- Returns
- DOCA_SUCCESS - in case of success. doca_error code - in case of failure:
- DOCA_ERROR_INVALID_VALUE - received invalid input.