cipso_v4_doi_walk(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cipso_v4_doi_walk(9) πŸ’…

okay bestie, welcome to the Kernel API Manual entry for cipso_v4_doi_walk β€” yes we're in the kernel docs now, and yes you're gonna slay it 🫢


✨ NAME ✨

cipso_v4_doi_walk β€” iterate through the DOI definitions πŸŒ€


πŸŽ€ SYNOPSIS πŸŽ€

int cipso_v4_doi_walk (u32 *skip_cnt , int (*callback) (struct cipso_v4_doi *doi_def, void *arg) , void *cb_arg );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • skip_cnt β€” skip past this number of DOI definitions. also it gets updated, so like… it's not staying the same, keep an eye on it πŸ‘€
  • callback β€” the callback for each DOI definition, one per entry, no skips ✨
  • cb_arg β€” the argument you hand off to the callback function 🎁

🌸 DESCRIPTION 🌸

So here's the vibe: you iterate over the DOI definition list, and you skip the first skip_cnt entries β€” like scrolling past the first few posts, no big deal πŸ’…

For each entry, you call callback. And if callback returns a negative value, it stops and returns β€” that's your exit signal, respect it 😭

It returns zero on success, negative values on failure. periodt. πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./net/ipv4/cipso_ipv4.c, plus the whole friend group 🫢:


and that's the whole page bestie, go read some kernel source, ily πŸ’–

shoutout to ./net/ipv4 and the October 2026 release for making this little doc drop possible πŸŽ€βœ¨

πŸ“¦ where this page comes from