主权项 |
1. A method of processing an input/output (I/O) operation, comprising:
receiving a notification of a page fault, the page fault being responsive to an application attempting to perform an operation on a memory region that is set to a first access mode, and the memory region being designated to the application, wherein when the memory region is set to the first access mode, the application does not have permission to perform the operation on the memory region; responsive to receiving the notification:
setting the memory region to a second access mode, wherein when the memory region is set to the second access mode, the application has permission to perform the operation on the memory region; andspawning a kernel thread to drain data from the memory region; and storing the data in the memory region, wherein a hardware device processes the data. |