User Details
- User Since
- May 24 2016, 3:18 PM (413 w, 1 d)
Aug 24 2016
Added rangeset for file-offset allocation. File offsets can now be reused. :)
Aug 22 2016
Aug 21 2016
Aug 17 2016
- Header file updated with usage instructions.
- set_max_grants ioctl removed.
- Refactored notify and event-channel notification code.
Aug 9 2016
I'm sorry, I have very little idea about event channels, but from what I think, keeping refcounted channels is a better idea.
The event channel might be used to signal the foreign domain that we are unmapping the grant. Keeping a refcounted channel ensures that the notification always goes through, which won't be the case if we go with the other approach. The other domain may be waiting for a signal before deallocating the grant, and the lack of signal might lead to ghost grants accumulating, wasting precious memory (which in case of FreeBSD would be wired pages).
Aug 6 2016
Hi bjk,
Added UNMAP_NOTIFY_SEND_EVENT code, factored out notify function, used a union to save space, and added usage instructions in the device header file.
Aug 3 2016
Add notify function UNMAP_NOTIFY_CLEAR_BYTE.
Aug 2 2016
Added Async cleanup using Taskqueue and RedBlack Tree for internal data structures.
Please review :)
Aug 1 2016
The taskqueue(9) and tree(3) stuff has been tested very well as it is used in the rest of the system. There is no good reason not to use it from the start.
I've added comments to all parts of the code, and tried to conform with the style guidelines everywhere.
I'll add instructions on how to use the device in the header file in an hour.
Style Corrections