int err, i, poll_max = (nr_dls + 1) * POLLS_PER_DL;
int err, i, poll_max = (nr_dls + 1) * POLLS_PER_DRV;
static void event_loop(int nr_dls, struct pollfd *poll_array){	int err, i, poll_max = (nr_dls + 1) * POLLS_PER_DL;	void (* fn)(struct pollfd *, int);	while (1) {		if ((err = poll(poll_array, poll_max, -1)) < 0) {			if (errno != EINTR) {				eprintf("%d %d\n", err, errno);				exit(1);			}			continue;		}		if (poll_array[POLL_NL].revents)			nl_event_handle(nl_fd);		if (poll_array[POLL_IPC].revents)			ipc_event_handle(ipc_fd);		for (i = 0; i < nr_dls && dl_handles[i]; i++) {			fn = dlsym(dl_handles[i], "poll_event");			if (!fn) {				eprintf("%s\n", dlerror());				continue;			}			fn(poll_array + ((i + 1) * POLLS_PER_DL), POLLS_PER_DL);		}	}}