Zephyr Project API
3.5.0
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 <
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
include
zephyr
posix
sys
eventfd.h
Generated on Tue Mar 5 2024 08:42:07 for Zephyr Project API by
1.9.8