SAI Metadata
Loading...
Searching...
No Matches
_sai_object_list_t Struct Reference

Defines a list of SAI object ids used as SAI attribute value. More...

#include <saitypes.h>

Public Attributes

uint32_t count
 
sai_object_id_t * list
 

Detailed Description

Defines a list of SAI object ids used as SAI attribute value.

In set attribute function call, the count member defines the number of objects.

In get attribute function call, the function call returns a list of objects to the caller in the list member. The caller is responsible for allocating the buffer for the list member and set the count member to the size of allocated object list. If the size is large enough to accommodate the list of object id, the callee will then fill the list member and set the count member to the actual number of objects. If the list size is not large enough, the callee will set the count member to the actual number of object id and return SAI_STATUS_BUFFER_OVERFLOW. Once the caller gets such return code, it should use the returned count member to re-allocate list and retry.

Definition at line 163 of file saitypes.h.

Member Data Documentation

◆ count

uint32_t _sai_object_list_t::count

Definition at line 165 of file saitypes.h.

◆ list

sai_object_id_t* _sai_object_list_t::list

Definition at line 166 of file saitypes.h.


The documentation for this struct was generated from the following file: