summaryrefslogtreecommitdiff
path: root/include/sbi/sbi_list.h
AgeCommit message (Collapse)Author
2025-09-01lib: sbi_list: Add a helper for reverse list iterationSamuel Holland
Some use cases require iterating through a list in both directions. Signed-off-by: Samuel Holland <[email protected]> Reviewed-by: Anup Patel <[email protected]> Tested-by: Anup Patel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Anup Patel <[email protected]>
2025-07-20lib: sbi_list: add a helper for safe list iterationYong-Xuan Wang
Some use cases require iterating safe against removal of list entry. Signed-off-by: Yong-Xuan Wang <[email protected]> Reviewed-by: Anup Patel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Anup Patel <[email protected]>
2023-05-11lib: sbi: Remove unnecessary semicolonXiang W
We have redundant semicolon at quite a few places so let's remove it. Signed-off-by: Xiang W <[email protected]> Reviewed-by: Anup Patel <[email protected]>
2023-01-06treewide: Replace TRUE/FALSE with true/falseBin Meng
C language standard uses true/false for the boolean type. Let's switch to that for better language compatibility. Signed-off-by: Bin Meng <[email protected]> Reviewed-by: Anup Patel <[email protected]> Reviewed-by: Samuel Holland <[email protected]> Tested-by: Samuel Holland <[email protected]>
2021-07-11include: Add a list empty check functionAtish Patra
Implement a list helper function that checks for empty lists. Reviewed-by: Anup Patel <[email protected]> Reviewed-by: Xiang W <[email protected]> Signed-off-by: Atish Patra <[email protected]>
2020-01-22include: Add generic and simple list handling APIsAnup Patel
This patch adds generic and simple list handling APIs adapted from Xvisor sources. Signed-off-by: Anup Patel <[email protected]> Reviewed-by: Atish Patra <[email protected]>