1#ifndef __VSF_LINUX_SYS_EVENTFD_H__
2#define __VSF_LINUX_SYS_EVENTFD_H__
6#if VSF_LINUX_CFG_RELATIVE_PATH == ENABLED
7# include "../sys/types.h"
19#if VSF_LINUX_CFG_WRAPPER == ENABLED
20#define eventfd VSF_LINUX_WRAPPER(eventfd)
21#define eventfd_read VSF_LINUX_WRAPPER(eventfd_read)
22#define eventfd_write VSF_LINUX_WRAPPER(eventfd_write)
27#define __NR_eventfd(__count) eventfd((__count), 0)
28#define __NR_eventfd2 eventfd
30#define EFD_SEMAPHORE (1 << 0)
31#define EFD_CLOEXEC O_CLOEXEC
32#define EFD_NONBLOCK O_NONBLOCK
36#if VSF_LINUX_APPLET_USE_SYS_EVENTFD == ENABLED
44# ifndef __VSF_APPLET__
49#if defined(__VSF_APPLET__) && (defined(__VSF_APPLET_LIB__) || defined(__VSF_APPLET_LINUX_SYS_EVENTFD_LIB__))\
50 && VSF_APPLET_CFG_ABI_PATCH != ENABLED && VSF_LINUX_APPLET_USE_SYS_EVENTFD == ENABLED
52#ifndef VSF_LINUX_APPLET_SYS_EVENTFD_VPLT
53# if VSF_LINUX_USE_APPLET == ENABLED
54# define VSF_LINUX_APPLET_SYS_EVENTFD_VPLT \
55 ((vsf_linux_sys_eventfd_vplt_t *)(VSF_LINUX_APPLET_VPLT->sys_eventfd_vplt))
57# define VSF_LINUX_APPLET_SYS_EVENTFD_VPLT \
58 ((vsf_linux_sys_eventfd_vplt_t *)vsf_vplt((void *)0))
62#define VSF_LINUX_APPLET_SYS_EVENTFD_ENTRY(__NAME) \
63 VSF_APPLET_VPLT_ENTRY_FUNC_ENTRY(VSF_LINUX_APPLET_SYS_EVENTFD_VPLT, __NAME)
64#define VSF_LINUX_APPLET_SYS_EVENTFD_IMP(...) \
65 VSF_APPLET_VPLT_ENTRY_FUNC_IMP(VSF_LINUX_APPLET_SYS_EVENTFD_VPLT, __VA_ARGS__)
67VSF_LINUX_APPLET_SYS_EVENTFD_IMP(
eventfd,
int,
int count,
int flags) {
69 return VSF_LINUX_APPLET_SYS_EVENTFD_ENTRY(
eventfd)(count, flags);
82int eventfd(
int count,
int flags);
__VSF_VPLT_DECORATOR__ vsf_linux_sys_eventfd_vplt_t vsf_linux_sys_eventfd_vplt
Definition vsf_linux_fs.c:3642
#define eventfd_write
Definition eventfd.h:22
#define eventfd
Definition eventfd.h:20
uint64_t eventfd_t
Definition eventfd.h:34
#define eventfd_read
Definition eventfd.h:21
unsigned long long uint64_t
Definition stdint.h:11
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(eventfd_read)
vsf_vplt_info_t info
Definition eventfd.h:38
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(eventfd)
VSF_APPLET_VPLT_ENTRY_FUNC_DEF(eventfd_write)
vk_av_control_value_t value
Definition vsf_audio.h:171
#define __VSF_VPLT_DECORATOR__
Definition vsf_cfg.h:93
#define VSF_APPLET_VPLT_ENTRY_FUNC_TRACE()
Definition vsf_cfg.h:165