News for hackers. Stuff that matters.
Re:Zed Shaw: "poll, epoll, science, and superpoll" with R by FooBarWidget on Wednesday August 04, 2010 @05:20AM (#1574058)
Yeah but it's possible to look up things in userspace right? So just change poll() to assume that the pointer points to userspace. I don't see the need for copying.
Re:Zed Shaw: "poll, epoll, science, and superpoll" with R by kqueue on Wednesday August 04, 2010 @05:43PM (#1576045)
When the kernel calls poll, poll will access memory in the kernel address space because that's where it is running. All the addresses accessed in any system call are in the kernel address space. They don't go back and forth and swap vm pointers to fetch data from other processes. That's not how kernels work. And no you cannot change poll().. You write epoll/kqueue