Zephyr API Documentation
4.0.99
A Scalable Open Source RTOS
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:96
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 Thu Nov 21 2024 18:02:24 for Zephyr API Documentation by
1.12.0