acltdtGrantQueue
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
☓ |
☓ |
|
☓ |
|
☓ |
|
☓ |
|
☓ |
Description
Grants queue-related permissions to other processes, such as enqueue and dequeue when the processes need to share queue information.
Users need to ensure the security when queue-related information is transferred between processes.
Prototype
1 | aclError acltdtGrantQueue(uint32_t qid, int32_t pid, uint32_t permission, int32_t timeout) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
qid |
Input |
Queue ID. |
pid |
Input |
ID of the authorized process. |
permission |
Input |
Permission ID (queue producer/consumer). Logical OR result of macros from the following list (for example, ACL_TDT_QUEUE_PERMISSION_DEQUEUE | ACL_TDT_QUEUE_PERMISSION_ENQUEUE). Each macro corresponds to a specific permission.
|
timeout |
Input |
Wait timeout interval. The options are as follows:
|
Returns
0 on success; otherwise, failure. For details, see aclError.