sys_create_epoll
Applicable Products
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
x |
|
√ |
|
√ |
Description
Creates an epoll instance for media data processing to allow you to use the epoll programming model to operate the input and output data of the media data processing channel.
Prototype
- C Prototype
1hi_s32 hi_mpi_sys_create_epoll(hi_s32 size, hi_s32 *epoll_fd);
- Python Function
1epoll_fd, ret = acl.himpi.sys_create_epoll(size)
Parameters
None
Return Values
Return Value |
Description |
|---|---|
epoll_fd |
Int, pointer address of the file descriptor of an epoll instance. The number of file descriptors is restricted by the maximum number of files that can be opened at the same time in a task in the Linux OS, which can be viewed by using the ulimit -al command. |
ret |
Int, error code.
|
Constraints
- acl.himpi.sys_create_epoll, acl.himpi.sys_ctl_epoll, acl.himpi.sys_wait_epoll, and acl.himpi.sys_close_epoll must be used together. Use the epoll programming model to operate the input/output data of DVPP channels.
- For
Atlas inference products andAscend EP , only the provided epoll APIs (for example, acl.himpi.sys_create_epoll) can be used. The epoll functions of the Linux operating system cannot be used. - For
Atlas A2 products , only the provided epoll APIs (for example, acl.himpi.sys_create_epoll) can be used. The epoll functions of the Linux operating system cannot be used. - For
Atlas 200I/500 A2 inference products , only the provided epoll APIs (for example, acl.himpi.sys_create_epoll) can be used. The epoll functions of the Linux operating system cannot be used. - For
Atlas A3 products , only the epoll APIs (for example, acl.himpi.sys_create_epoll) provided by pyACL can be used. The epoll functions of the Linux operating system cannot be used. - VPC functions do not support this API.
Parent topic: Common APIs