acltdtSetQueueAttr

Description

Sets queue attributes.

Prototype

aclError acltdtSetQueueAttr(acltdtQueueAttr *attr, acltdtQueueAttrType type, size_t len, const void *param)

Parameters

Parameter

Input/Output

Description

attr

Input/Output

Pointer to the queue attribute configuration.

You need to call acltdtCreateQueueAttr to create data of the acltdtQueueAttr type in advance.

type

Input

Attribute type.

len

Input

Attribute value length.

  • If the attribute is of type *_UINT64, set this parameter to 8.
  • If the attribute is of type *_UINT32, set this parameter to 4.
  • If the attribute is of type *_PTR, set this parameter to 4 for 32-bit OS or 8 for 64-bit OS.

param

Input

Pointer to the attribute value.

Returns

The value 0 indicates success, and other values indicate failure. For details, see aclError.