hlist_nulls...h_entry_from(9)
π hlist_nulls...h_entry_from(9) β Kernel API Manual, bestie edition β¨
okay so like, welcome to the Kernel API Manual, specifically the page hlist_nulls...h_entry_from(9) β yes the title is a little chopped up, that's just how the manpage header do, we don't question it π
β¨ NAME β¨
hlist_nulls_for_each_entry_from β iterate over a hlist continuing from current point π¦
like, you're not starting from the top of the list, you're picking up from where you already are. main character energy, no restart necessary π
πΈ SYNOPSIS πΈ
hlist_nulls_for_each_entry_from (tpos , pos , member );
that's the whole vibe. three things go in, the loop happens, slay β¨
π ARGUMENTS π
tposβ the type * to use as a loop cursor. it's the typed pointer that walks the list, your little tour guide π«Άposβ the struct hlist_node to use as a loop cursor. yep, a second cursor, this one's the raw node-flavoured one πmemberβ the name of thehlist_nodewithin the struct. like, literally the field name, so the macro knows where to look π
ngl the two-cursors thing is a lot but that's macro life, we love her anyway π
π₯ SEE ALSO π₯
- the kernel file
./include/linux/list_nulls.hβ that's the home base, go read it fr fr π get_nulls_value(9)hlist_nulls_unhashed(9)hlist_nulls_unhashed_lockless(9)hlist_nulls_for_each_entry(9)
all of these are your friends, iykyk π
and that's the page!! shoutout to ./include/linux, October 2026 for making this iconic little corner of the kernel API possible ππ go forth and iterate, bestie β periodt π
β¨
π¦ 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