]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched: Improve documentation for wake_up_bit/wait_on_bit family of functions
authorNeilBrown <neilb@suse.de>
Wed, 25 Sep 2024 05:31:39 +0000 (15:31 +1000)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 7 Oct 2024 07:28:37 +0000 (09:28 +0200)
commit3cdee6b359f134da22f7fd4606e0338413cfd79e
tree43ec69335d09f78cb2efbad3385d688e93f3be4f
parent2382d68d7d43873ba856baf567cab0d5c523f23b
sched: Improve documentation for wake_up_bit/wait_on_bit family of functions

This patch revises the documention for wake_up_bit(),
clear_and_wake_up_bit(), and all the wait_on_bit() family of functions.

The new documentation places less emphasis on the pool of waitqueues
used (an implementation detail) and focuses instead on details of how
the functions behave.

The barriers included in the wait functions and clear_and_wake_up_bit()
and those required for wake_up_bit() are spelled out more clearly.

The error statuses returned are given explicitly.

The fact that the wait_on_bit_lock() function sets the bit is made more
obvious.

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