Zephyr API
4.4.99
A Scalable Open Source RTOS
Toggle main menu visibility
Loading...
Searching...
No Matches
socket_poll.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2024 Nordic Semiconductor
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef ZEPHYR_INCLUDE_NET_SOCKET_POLL_H_
8
#define ZEPHYR_INCLUDE_NET_SOCKET_POLL_H_
9
10
#include <
zephyr/sys/fdtable.h
>
11
12
/* Setting for pollfd to avoid circular inclusion */
13
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
25
#ifdef __DOXYGEN__
31
struct
zsock_pollfd
{
32
int
fd
;
33
short
events
;
34
short
revents
;
35
};
36
#else
37
#define zsock_pollfd zvfs_pollfd
38
#endif
39
40
#ifdef __cplusplus
41
}
42
#endif
43
47
48
#endif
/* ZEPHYR_INCLUDE_NET_SOCKET_POLL_H_ */
fdtable.h
zsock_pollfd
Definition of the monitored socket/file descriptor.
Definition
socket_poll.h:31
zsock_pollfd::events
short events
Requested events.
Definition
socket_poll.h:33
zsock_pollfd::fd
int fd
Socket descriptor.
Definition
socket_poll.h:32
zsock_pollfd::revents
short revents
Returned events.
Definition
socket_poll.h:34
zephyr
net
socket_poll.h
Generated on
for Zephyr API by
1.17.0