Skip to content

Commit f2f2df4

Browse files
committed
doc: trd104: add note about YWF race condition avoidance
Add a brief note about how the kernel avoids an issue where an upcall is lost between an app asking for an event and calling YWF.
1 parent 5e2a44d commit f2f2df4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

doc/reference/trd104-syscalls.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,10 @@ function will invoked by the kernel. Instead, the contents of r0-r2 will
517517
be set to the Upcall Arguments provided by the driver when the upcall is
518518
scheduled.
519519

520+
To avoid a race condition between the event being waited on and the
521+
Yield-WaitFor call, the kernel will queue upcalls for the process even if
522+
there is no userspace callback function registered.
523+
520524
`yield-param-C` is unused and reserved.
521525

522526

0 commit comments

Comments
 (0)