Zephyr API Documentation
4.2.0
A Scalable Open Source RTOS
4.2.0
Toggle main menu visibility
Main Page
Related Pages
Topics
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
f
g
h
i
k
l
m
n
o
p
r
s
t
u
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Zephyr API Documentation
Introduction
Deprecated List
Topics
Data Structures
Files
File List
doc
kernel
lib
modules
subsys
zephyr
acpi
app_memory
arch
audio
bluetooth
canbus
console
crypto
data
debug
devicetree
dfu
display
drivers
dsp
dt-bindings
fs
input
internal
ipc
kernel
linker
llext
logging
lorawan
math
mem_mgmt
mgmt
misc
modbus
modem
multi_heap
net
platform
pm
pmci
portability
posix
arpa
net
netinet
sys
confstr.h
dirent.h
eventfd.h
ioctl.h
mman.h
select.h
socket.h
stat.h
sysconf.h
time.h
utsname.h
aio.h
dirent.h
fcntl.h
fnmatch.h
grp.h
mqueue.h
netdb.h
poll.h
posix_features.h
posix_types.h
pthread.h
pwd.h
sched.h
semaphore.h
signal.h
stropts.h
syslog.h
time.h
unistd.h
psa
random
retention
rtio
sd
sensing
settings
shell
sip_svc
stats
storage
sys
task_wdt
timing
toolchain
tracing
usb
usb_c
xen
zbus
zvfs
bindesc.h
cache.h
device.h
devicetree.h
fatal.h
fatal_types.h
init.h
irq.h
irq_multilevel.h
irq_nextlevel.h
irq_offload.h
kernel.h
kernel_includes.h
kernel_structs.h
kernel_version.h
net_buf.h
shared_irq.h
smf.h
spinlock.h
sw_isr_table.h
sys_clock.h
syscall.h
toolchain.h
types.h
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
eventfd.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2020 Tobias Svehagen
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef ZEPHYR_INCLUDE_POSIX_SYS_EVENTFD_H_
8
#define ZEPHYR_INCLUDE_POSIX_SYS_EVENTFD_H_
9
10
#include <
zephyr/zvfs/eventfd.h
>
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
15
16
#define EFD_SEMAPHORE ZVFS_EFD_SEMAPHORE
17
#define EFD_NONBLOCK ZVFS_EFD_NONBLOCK
18
19
typedef
zvfs_eventfd_t
eventfd_t
;
20
36
int
eventfd
(
unsigned
int
initval,
int
flags
);
37
48
int
eventfd_read
(
int
fd,
eventfd_t
*value);
49
58
int
eventfd_write
(
int
fd,
eventfd_t
value);
59
60
#ifdef __cplusplus
61
}
62
#endif
63
64
#endif
/* ZEPHYR_INCLUDE_POSIX_SYS_EVENTFD_H_ */
flags
flags
Definition
parser.h:97
eventfd_read
int eventfd_read(int fd, eventfd_t *value)
Read from an eventfd.
eventfd_write
int eventfd_write(int fd, eventfd_t value)
Write to an eventfd.
eventfd
int eventfd(unsigned int initval, int flags)
Create a file descriptor for event notification.
eventfd_t
zvfs_eventfd_t eventfd_t
Definition
eventfd.h:19
eventfd.h
zvfs_eventfd_t
uint64_t zvfs_eventfd_t
Definition
eventfd.h:21
zephyr
posix
sys
eventfd.h
Generated on
for Zephyr API Documentation by
1.14.0