Home
last modified time | relevance | path

Searched refs:fds (Results 1 – 10 of 10) sorted by relevance

/hal_espressif-3.6.0/components/newlib/
Dpoll.c21 int poll(struct pollfd *fds, nfds_t nfds, int timeout) in poll() argument
35 if (fds == NULL) { in poll()
45 fds[i].revents = 0; in poll()
47 if (fds[i].fd < 0) { in poll()
52 if (fds[i].fd >= FD_SETSIZE) { in poll()
53 fds[i].revents |= POLLNVAL; in poll()
58 if (fds[i].events & (POLLIN | POLLRDNORM | POLLRDBAND | POLLPRI)) { in poll()
59 FD_SET(fds[i].fd, &readfds); in poll()
60 FD_SET(fds[i].fd, &errorfds); in poll()
61 max_fd = MAX(max_fd, fds[i].fd); in poll()
[all …]
/hal_espressif-3.6.0/components/esp_http_server/src/
Dhttpd_main.c102 esp_err_t httpd_get_client_list(httpd_handle_t handle, size_t *fds, int *client_fds) in httpd_get_client_list() argument
105 if (hd == NULL || fds == NULL || *fds == 0 || client_fds == NULL) { in httpd_get_client_list()
108 size_t max_fds = *fds; in httpd_get_client_list()
109 *fds = 0; in httpd_get_client_list()
112 if (*fds < max_fds) { in httpd_get_client_list()
113 client_fds[(*fds)++] = hd->hd_sd[i].fd; in httpd_get_client_list()
/hal_espressif-3.6.0/components/spiffs/test_spiffs_host/
Dtest_spiffs.cpp47 uint8_t *fds = (uint8_t*) malloc(fds_sz); in init_spiffs() local
60 spiffs_res = SPIFFS_mount(fs, &cfg, work, fds, fds_sz, in init_spiffs()
67 spiffs_res = SPIFFS_mount(fs, &cfg, work, fds, fds_sz, in init_spiffs()
/hal_espressif-3.6.0/components/spiffs/
Desp_spiffs.c111 free(e->fds); in esp_spiffs_free()
208 efs->fds = malloc(efs->fds_sz); in esp_spiffs_init()
209 if (efs->fds == NULL) { in esp_spiffs_init()
214 memset(efs->fds, 0, efs->fds_sz); in esp_spiffs_init()
248 s32_t res = SPIFFS_mount(efs->fs, &efs->cfg, efs->work, efs->fds, efs->fds_sz, in esp_spiffs_init()
261 res = SPIFFS_mount(efs->fs, &efs->cfg, efs->work, efs->fds, efs->fds_sz, in esp_spiffs_init()
336 _efs[index]->fds, _efs[index]->fds_sz, _efs[index]->cache, in esp_spiffs_format()
Dspiffs_api.h41 uint8_t *fds; /*!< File Descriptor Buffer */ member
/hal_espressif-3.6.0/components/newlib/platform_include/sys/
Dpoll.h42 int poll(struct pollfd *fds, nfds_t nfds, int timeout);
/hal_espressif-3.6.0/components/vfs/
Dvfs.c808 static inline bool esp_vfs_safe_fd_isset(int fd, const fd_set *fds) in esp_vfs_safe_fd_isset() argument
810 return fds && FD_ISSET(fd, fds); in esp_vfs_safe_fd_isset()
846 static void esp_vfs_log_fd_set(const char *fds_name, const fd_set *fds) in esp_vfs_log_fd_set() argument
848 if (fds_name && fds) { in esp_vfs_log_fd_set()
851 if (esp_vfs_safe_fd_isset(i, fds)) { in esp_vfs_log_fd_set()
/hal_espressif-3.6.0/examples/system/eventfd/
DREADME.md7 3. The second task collects the event from two fds with a `select()` loop.
/hal_espressif-3.6.0/components/esp_http_server/include/
Desp_http_server.h1517 esp_err_t httpd_get_client_list(httpd_handle_t handle, size_t *fds, int *client_fds);
/hal_espressif-3.6.0/docs/en/api-reference/storage/
Dvfs.rst239 Event fds