hlist_bl_for...h_entry_safe(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 β€” the type * to use as a loop cursor. this is the typed pointer doing the main-character walk, iykyk ✨
  • pos β€” the struct hlist_node to use as a loop cursor. it's the node cursor bestie 🫢
  • n β€” another struct hlist_node to 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 the hlist_node within 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