Home
last modified time | relevance | path

Searched refs:n_fds (Results 1 – 6 of 6) sorted by relevance

/third_party/pulseaudio/src/pulsecore/
Drtpoll.c402 pa_rtpoll_item *pa_rtpoll_item_new(pa_rtpoll *p, pa_rtpoll_priority_t prio, unsigned n_fds) { in pa_rtpoll_item_new() argument
412 i->n_pollfd = n_fds; in pa_rtpoll_item_new()
432 if (n_fds > 0) { in pa_rtpoll_item_new()
434 p->n_pollfd_used += n_fds; in pa_rtpoll_item_new()
452 struct pollfd *pa_rtpoll_item_get_pollfd(pa_rtpoll_item *i, unsigned *n_fds) { in pa_rtpoll_item_get_pollfd() argument
459 if (n_fds) in pa_rtpoll_item_get_pollfd()
460 *n_fds = i->n_pollfd; in pa_rtpoll_item_get_pollfd()
Drtpoll.h72 pa_rtpoll_item *pa_rtpoll_item_new(pa_rtpoll *p, pa_rtpoll_priority_t prio, unsigned n_fds);
78 struct pollfd *pa_rtpoll_item_get_pollfd(pa_rtpoll_item *i, unsigned *n_fds);
/third_party/pulseaudio/src/daemon/
Dmain.c522 int n_fds = 0, *passed_fds = NULL; local
597 n_fds = sd_listen_fds(0);
598 if (n_fds > 0) {
599 int i = n_fds;
601 passed_fds = pa_xnew(int, n_fds+2);
602 passed_fds[n_fds] = passed_fds[n_fds+1] = -1;
609 n_fds = 0;
617 passed_fds[n_fds] = passed_fd;
Dohos_pa_main.c538 int n_fds = 0, *passed_fds = NULL; in real_main() local
613 n_fds = sd_listen_fds(0); in real_main()
614 if (n_fds > 0) { in real_main()
615 int i = n_fds; in real_main()
617 passed_fds = pa_xnew(int, n_fds+2); in real_main()
618 passed_fds[n_fds] = passed_fds[n_fds+1] = -1; in real_main()
625 n_fds = 0; in real_main()
633 passed_fds[n_fds] = passed_fd; in real_main()
/third_party/python/Modules/
Dselectmodule.c750 int n_fds; member
765 if (!self->n_fds) return 0; in devpoll_flush()
767 size = sizeof(struct pollfd)*self->n_fds; in devpoll_flush()
768 self->n_fds = 0; in devpoll_flush()
799 self->fds[self->n_fds].fd = fd; in internal_devpoll_register()
800 self->fds[self->n_fds].events = POLLREMOVE; in internal_devpoll_register()
802 if (++self->n_fds == self->max_n_fds) { in internal_devpoll_register()
808 self->fds[self->n_fds].fd = fd; in internal_devpoll_register()
809 self->fds[self->n_fds].events = (signed short)events; in internal_devpoll_register()
811 if (++self->n_fds == self->max_n_fds) { in internal_devpoll_register()
[all …]
/third_party/pulseaudio/src/modules/alsa/
Dalsa-mixer.c541 unsigned n_fds; in rtpoll_work_cb() local
549 p = pa_rtpoll_item_get_pollfd(i, &n_fds); in rtpoll_work_cb()
551 if ((err = snd_mixer_poll_descriptors_revents(pd->mixer, p, n_fds, &revents)) < 0) { in rtpoll_work_cb()