]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched: Document wait_var_event() family of functions and wake_up_var()
authorNeilBrown <neilb@suse.de>
Wed, 25 Sep 2024 05:31:40 +0000 (15:31 +1000)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 7 Oct 2024 07:28:38 +0000 (09:28 +0200)
commitbf39882edc798279765ca31751f6e679b50b97ef
treeaed8a892e3c469b99f9d1bc4ff8b08fa57c35ad1
parent3cdee6b359f134da22f7fd4606e0338413cfd79e
sched: Document wait_var_event() family of functions and wake_up_var()

wake_up_var(), wait_var_event() and related interfaces are not
documented but have important ordering requirements.  This patch adds
documentation and makes these requirements explicit.

The return values for those wait_var_event_* functions which return a
value are documented.  Note that these are, perhaps surprisingly,
sometimes different from comparable wait_on_bit() functions.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20240925053405.3960701-4-neilb@suse.de
include/linux/wait_bit.h
kernel/sched/wait_bit.c