sys_wait_epoll

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product / Atlas A3 inference product

Atlas A2 training product / Atlas A2 inference product

Atlas training product

x

Atlas inference product

Atlas 200I/500 A2 inference product

Description

Waits for the epoll instance of media data processing to generate an event when the epoll model is used to perform input and output operations on the media data processing channel.

Prototype

  • C Prototype
    1
    hi_s32 hi_mpi_sys_wait_epoll(hi_s32 epoll_fd, hi_dvpp_epoll_event *events, hi_s32 max_events, hi_s32 timeout, hi_s32 *event_num);
    
  • Python Function
    1
    event, event_num, ret = acl.himpi.sys_wait_epoll(epoll_fd, max_events, timeout)
    

Parameters

Parameter

Description

epoll_fd

Int, pointer address of the media data processing epoll file descriptor. The file descriptor is created by calling acl.himpi.sys_create_epoll.

max_events

Int, maximum number of events. Must not exceed the number of elements in the events array.

timeout

Int, timeout interval, in milliseconds.
  • -1: permanently blocked.
  • 0: no timeout.
  • > 0: timeout interval.

Return Value

Return Value

Description

event

list: saves the generated event information. For details, see hi_dvpp_epoll_event.

event_num

Int, number of events occurred on the epoll instance.

ret

Int, error code.

0 indicates success.

Other values indicate failures. For details, see Common Return Codes.

Restrictions

Reference

For details about the API call sequence and sample code, see JPEGE and VENC.

For details about the API call sequence and sample code, see JPEGE.