Zephyr API Documentation
3.5.0
A Scalable Open Source RTOS
3.5.0
Toggle main menu visibility
Main Page
Related Pages
Modules
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
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
•
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 <
stdint.h
>
11
12
#include <
zephyr/kernel.h
>
13
#include <
zephyr/posix/fcntl.h
>
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
19
#define EFD_IN_USE 0x1 __DEPRECATED_MACRO
20
#define EFD_SEMAPHORE 0x2
21
#define EFD_NONBLOCK O_NONBLOCK
22
#define EFD_FLAGS_SET (EFD_SEMAPHORE | EFD_NONBLOCK) __DEPRECATED_MACRO
23
24
typedef
uint64_t
eventfd_t
;
25
41
int
eventfd
(
unsigned
int
initval,
int
flags
);
42
53
int
eventfd_read
(
int
fd,
eventfd_t
*value);
54
63
int
eventfd_write
(
int
fd,
eventfd_t
value);
64
65
#ifdef __cplusplus
66
}
67
#endif
68
69
#endif
/* ZEPHYR_INCLUDE_POSIX_SYS_EVENTFD_H_ */
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
uint64_t eventfd_t
Definition:
eventfd.h:24
kernel.h
Public kernel APIs.
fcntl.h
flags
flags
Definition:
parser.h:96
stdint.h
uint64_t
__UINT64_TYPE__ uint64_t
Definition:
stdint.h:91
zephyr
posix
sys
eventfd.h
Generated on Fri Oct 20 2023 10:27:12 for Zephyr API Documentation by
1.9.6