Zephyr API Documentation 3.7.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_ZEPHYR_ZVFS_EVENTFD_H_
8#define ZEPHYR_INCLUDE_ZEPHYR_ZVFS_EVENTFD_H_
9
10#include <stdint.h>
11
12#include <zephyr/kernel.h>
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18#define ZVFS_EFD_SEMAPHORE 2
19#define ZVFS_EFD_NONBLOCK 0x4000
20
22
38int zvfs_eventfd(unsigned int initval, int flags);
39
51
61
62#ifdef __cplusplus
63}
64#endif
65
66#endif /* ZEPHYR_INCLUDE_ZEPHYR_ZVFS_EVENTFD_H_ */
Public kernel APIs.
flags
Definition parser.h:96
__UINT64_TYPE__ uint64_t
Definition stdint.h:91
uint64_t zvfs_eventfd_t
Definition eventfd.h:21
int zvfs_eventfd_read(int fd, zvfs_eventfd_t *value)
Read from a ZVFS eventfd.
int zvfs_eventfd_write(int fd, zvfs_eventfd_t value)
Write to a ZVFS eventfd.
int zvfs_eventfd(unsigned int initval, int flags)
Create a file descriptor for ZVFS event notification.