sys_ctl_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

Adds, deletes, or modifies the corresponding media data processing channel for the media data processing epoll instance.

Prototype

  • C Prototype
    1
    hi_s32 hi_mpi_sys_ctl_epoll(hi_s32 epoll_fd, hi_s32 operation, hi_s32 fd, hi_dvpp_epoll_event *event);
    
  • Python Function
    1
    ret = acl.himpi.sys_ctl_epoll(epoll_fd, operation, fd, event)
    

Parameters

Parameter

Description

epoll_fd

Int, pointer address of the epoll file descriptor. The file descriptor must be created in advance by calling acl.himpi.sys_create_epoll.

operation

Int, operation type (addition, deletion, or modification). For details, see hi_dvpp_epoll_ctl_op.

fd

Int, file descriptor of the media data processing channel. To obtain a file descriptor in the VENC scenario, call acl.himpi.venc_get_fd. To obtain a file descriptor in the VDEC scenario, call acl.himpi.vdec_get_fd.

event

Dict, epoll event information structure. This parameter describes the event type of the corresponding media data processing channel and the associated user data. This parameter is invalid when a deletion operation is performed. For details, see hi_dvpp_epoll_event.

Return Value

Return Value

Description

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.