Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/devices/src/virtio/block/queqe_handler.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Brief description of queue handlers
init: initializing op as EventOps by adding event of a file descriptor, associated data and EVENTSET::IN
process:
check valid events by matching following values:
1. events.event\_set() == EventSet::IN
2. events.data() == IOEVENT_DATA
3. self.ioeventfd.read().is\_err()
4. inorderhander process\_queue() is giving error
in case of not valid event, remove the event from op.
9 changes: 9 additions & 0 deletions src/devices/src/virtio/net/queue-handler.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Brief description of queue handlers <br/>
init: initializing op as EventOps by adding event of a file descriptor, associated data and EVENTSET::IN except TAPFD may be EVENTSET::EDGE\_TRIGGERED <br/>
process: check valid events by matching following values: <br/>
1. events.event\_set() == EventSet::IN (| EVENTSET::EDGE\_TRIGGERED in case of TAPFD)
2. events.data() == X\_DATA (X may be TAPFD, RX\_IOEVENT or TX\_IOEVENT)
3. self.ioeventfd.read().is\_err()
4. inorderhander process\_queue() is giving error (queue may be of tap, rx or tx) <br/>
In case of not valid event, remove the event from op. <br/>
handle\_error: remove all events from ops.