Skip to content

Commit e5ca72c

Browse files
committed
DOC: sched: add missing scheduler API documentation for tasklet_wakeup_after()
This was added to 2.6 but the doc was forgotten. Let's add it. It's not needed to backport this since it's only used for new developments.
1 parent 501827e commit e5ca72c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/internals/api/scheduler.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,17 @@ void tasklet_wakeup(tl)
103103
least once. The tasklet will run on its assigned thread, or on any
104104
thread if its TID is negative.
105105

106+
struct list *tasklet_wakeup_after(head, tl)
107+
Schedule tasklet <tl> to run immediately the current one if <head> is
108+
NULL, or after the last queued one if <head> is non-null. The new head
109+
is returned, to be passed to the next call. The purpose here is to
110+
permit instant wakeups of resumed tasklets that still preserve
111+
ordering between them. A typical use case is for a mux' I/O handler to
112+
instantly wake up a series of urgent streams before continuing with
113+
already queued tasklets. This may induce extra latencies for pending
114+
jobs and must only be used extremely carefully when it's certain that
115+
the processing will benefit from using fresh data from the L1 cache.
116+
106117
void tasklet_wakeup_on(tl, thr)
107118
Make sure that tasklet <tl> will wake up on thread <thr>, that is, will
108119
execute at least once. The designated thread may only differ from the

0 commit comments

Comments
 (0)