netlink_policy_dump_loop(9)
π netlink_policy_dump_loop(9)
okay bestie, welcome to the Kernel API Manual (section 9, the real ones know) β today's main character is netlink_policy_dump_loop. yes she's a function. yes she's a whole vibe. let's get into it π«Ά
β¨ NAME β¨
netlink_policy_dump_loop β the dumping loop indicator π«
like, she literally tells you whether the dumping loop keeps going. that's the job. that's the whole job.
π¦ SYNOPSIS π¦
bool netlink_policy_dump_loop (struct netlink_policy_dump_state *state
);
so clean, so iconic, no notes π
π ARGUMENTS π
stateβ the policy dump state π β like, this is the state object for the policy dump, the one carrying all the dump energy. she's the moment.
πΈ RETURN πΈ
trueβ the dump continues, bestie. keep going, we're not done yet π₯falseβ otherwise. dump's over. that's a wrap π
ngl this one's easy to remember: true = keep looping, false = we're so done here.
β NOTE β
heads up, this frees the dump state when finishing π β so like, she takes care of cleanup on her way out. don't be out here double-freeing things, iykyk π
π SEE ALSO π
- Kernel file
./net/netlink/policy.cβ go read the source, it's giving main character energy πβ¨ netlink_policy_dump_get_policy_idx(9)netlink_policy_dump_add_policy(9)netlink_policy_dump_write_attr(9)netlink_policy_dump_write(9)netlink_policy_dump_free(9)
literally the whole friend group, go say hi to all of them π§π
mwah π that's the page! this little gem lives in ./net/netlink, the manual's dated October 2026, and it's your girl Kernel API Manual netlink_policy_dump_loop(9) signing off β slay, stay looping, and remember: she frees on finish ππβ
π¦ 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