qeth_get_elements_for_frags(9)
π 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:
qeth_irq(9)qeth_send_control_data(9)qeth_prep_flush_pack_buffer(9)qeth_count_elements(9)qeth_add_hw_header(9)qeth_fill_buffer(9)qeth_vm_request_mac(9)qeth_enable_hw_features(9)
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
- 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