acl.himpi.sys_ctl_epoll

C Prototype

hi_s32 hi_mpi_sys_ctl_epoll(hi_s32 epoll_fd, hi_s32 operation, hi_s32 fd, hi_dvpp_epoll_event *event);

Python Function

ret = acl.himpi.sys_ctl_epoll(epoll_fd, operation, fd, event)

Function Usage

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

The Atlas 200/300/500 Inference Product does not support this API.

The Atlas Training Series Product does not support this API.

Input Description

epoll_fd: int, pointer address of the epoll instance handle. The handle 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: int, pointer address to the epoll event information. 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.

Return Value

ret: int, error code.

Restrictions