Zephyr API 3.6.99
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
13extern "C" {
14#endif
15
16#define EFD_SEMAPHORE ZVFS_EFD_SEMAPHORE
17#define EFD_NONBLOCK ZVFS_EFD_NONBLOCK
18
20
36int eventfd(unsigned int initval, int flags);
37
48int eventfd_read(int fd, eventfd_t *value);
49
58int eventfd_write(int fd, eventfd_t value);
59
60#ifdef __cplusplus
61}
62#endif
63
64#endif /* ZEPHYR_INCLUDE_POSIX_SYS_EVENTFD_H_ */
flags
Definition parser.h:96
int eventfd_read(int fd, eventfd_t *value)
Read from an eventfd.
int eventfd_write(int fd, eventfd_t value)
Write to an eventfd.
int eventfd(unsigned int initval, int flags)
Create a file descriptor for event notification.
zvfs_eventfd_t eventfd_t
Definition eventfd.h:19
uint64_t zvfs_eventfd_t
Definition eventfd.h:21