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