Does poll handler is in interrupt context ?
Dec. 18, 2016
9:24 a.m.
Hello, This is something I'm not too sure about, so I rather ask it here: When the context return to userspace on calling poll, is it done in interrupt context ? ... ret = poll(fds, 2, TIMEOUT * 1000); if (ret == -1) { perror ("poll"); return 1; } if (!ret) { return 0; } if (fds[0].revents & POLLIN) printf ("POLLIN\n"); if (fds[1].revents & POLLOUT) printf ("POLLOUT\n"); return 0; Regards, Ran
Dec. 18, 2016
12:47 p.m.
On Sun, Dec 18, 2016 at 11:24 AM, Ran Shalit <ranshalit@gmail.com> wrote:
Hello,
This is something I'm not too sure about, so I rather ask it here: When the context return to userspace on calling poll, is it done in interrupt context ? No. the process will continue running in thread context.
3526
Age (days ago)
3526
Last active (days ago)
1 comments
2 participants
participants (2)
-
Ran Shalit -
Tal Shorer