hlist_bl_for...h_entry_safe(9)
hlist_bl_for...h_entry_safe(9) π¦
okay so hi bestie, welcome to the Kernel API Manual π we're looking at hlist_bl_for_each_entry_safe, and the header is out here shortening it to hlist_bl_for...h_entry_safe(9) β iconic behavior honestly. this one is a list-iteration situation where you're walking a list safely even when a list entry gets removed. no cap.
πΈ NAME πΈ
hlist_bl_for_each_entry_safe β iterate over list of given type safe against removal of list entry. that's the whole mood: you're looping through a list of the given type, and it's safe against removal of list entry, so the removal doesn't ruin your little cursor era π
β¨ SYNOPSIS β¨
hlist_bl_for_each_entry_safe (tpos , pos , n , head , member );
π ARGUMENTS π
tposβ thetype *to use as a loop cursor. this is the typed pointer doing the main-character walk, iykyk β¨posβ thestruct hlist_nodeto use as a loop cursor. it's the node cursor bestie π«Άnβ anotherstruct hlist_nodeto use as temporary storage. lowkey the designated holder so the loop can stay safe πheadβ the head for your list. the start-of-the-whole-thing energy πmemberβ the name of thehlist_nodewithin the struct. literally the field name that tells the loop where the node lives π
π¦ SEE ALSO π¦
- Kernel file
./include/linux/list_bl.hβ go peek, it's giving source-code realness π hlist_bl_for_each_entry(9)β the other page to check out π
mwah π source/version: ./include/linux, page: hlist_bl_for...h_entry_safe(9), date: October 2026. bye bestie, go loop safely π«Άπ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms