]> git.ipfire.org Git - thirdparty/linux.git/commit
<linux/list.h>: Introduce the list_for_each_reverse() method
authorIngo Molnar <mingo@kernel.org>
Thu, 21 Sep 2023 09:32:58 +0000 (11:32 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 22 Sep 2023 07:38:42 +0000 (09:38 +0200)
commit8bf0cdfac7f8aa3fa6151b5c5f5eebdb44a64e89
tree05ef70b4de7409fae497466155c53625ee42d0ef
parent1632d47fae2f2d229dd432854c4443ebb0bb27a4
<linux/list.h>: Introduce the list_for_each_reverse() method

The list_head counterpart of list_for_each_entry_reverse() was missing,
add it to complete the list handling APIs in <linux/list.h>.

[ This new API is also relied on by a WIP scheduler patch, so this
  variant is not a theoretical possibility only. ]

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org
include/linux/list.h