From: johan verrept <johan.verrept@pa...> - 2001-04-04 22:03:14
When writing a driver for uml, in the "user" part of the driver, the part that talks to the
host-kernel, what do I use there to allocate memory?
I have been using malloc() up until now, is this ok? (It works anyway...)
Further, I also tried to use the fd/interrupt thingie, but that did not work.
The fd gets the (POLLOUT | POLLWRNORM) events set. It seems the interrupt simulation does not
respond to that. I'm back to a kernel thread and polling. It works but it's kinda yukkie. Is there a
problem in just waiting on every event on the fd? Adding an extra parameter that specifies which
events (or defining a few new flags) seems cleaner though.
Let me know what you think is best and I'll post a patch.
Get latest updates about Open Source Projects, Conferences and News.