qeth_get_elements_for_frags(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… qeth_get_elements_for_frags(9) πŸ’…

okay so this is from the Kernel API Manual, and honestly? it's a little baddie. let's get into it πŸŽ€


✨ NAME ✨

qeth_get_elements_for_frags β€” find number of SBALEs for skb frags. periodt.


πŸ¦‹ SYNOPSIS πŸ¦‹

int qeth_get_elements_for_frags (struct sk_buff *skb );

🌸 ARGUMENTS 🌸

  • skb β€” the SKB address. that's it, that's the whole argument. she's low maintenance πŸ’…

πŸ’– DESCRIPTION πŸ’–

okay so bestie, what this function does is it returns the number of pages β€” and therefore the number of QDIO buffer elements β€” that you need to cover the fragmented part of the SKB. that's the vibe check it's running. πŸ”₯

and like, special case: it returns zero for a linear SKB. no frags, no elements, zero, done, bye 🫢


πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file ./drivers/s390/net/qeth_core_main.c and her whole friend group:

like genuinely an iconic lineup, iykyk πŸ’€βœ¨


and that's the page!! 🌈 this little gem lives in ./drivers/s390/net and it's dated October 2026 β€” anyway ily, go read your kernel source, mwah πŸ’œπŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from