nfc_alloc_send_skb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ nfc_alloc_send_skb(9) πŸ¦‹

okay bestie so this is a page from the Kernel API Manual (yes, the kernel kernel, we're being fancy today ✨) and it's all about nfc_alloc_send_skb β€” think of it as the little function whose whole job is allocating an skb for data exchange responses. it's giving "backstage crew of the NFC world" energy, lowkey iconic πŸ‘‘


🌸 NAME 🌸

nfc_alloc_send_skb β€” allocate an skb for data exchange responses πŸ’–


✨ SYNOPSIS ✨

struct sk_buff * nfc_alloc_send_skb (struct nfc_dev *dev , struct sock
*sk , unsigned int flags , unsigned int size , unsigned int *err );

like, that's the whole vibe right there β€” it hands you back a struct sk_buff *, no cap 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device that's sending the response πŸ“‘ literally the main character of this operation
  • sk β€” the socket that's sending the response πŸ”Œ the other half of the sending situation
  • flags β€” the MSG_DONTWAIT flag πŸƒβ€β™€οΈ that's the one flag listed here, fr fr
  • size β€” the size to allocate πŸ“ how much room you're asking for, bestie
  • err β€” a pointer to memory where the error code gets stored 🫣 so like, if things go sideways, that's where you find out, iykyk
ngl, err is a pointer and you do need to give it real memory to point at β€” the page says "pointer to memory to store the error code", and we are not out here inventing extra lore πŸ’…

🌈 SEE ALSO 🌈

kernel file ./net/nfc/core.c β€” and the whole friend group πŸ’œ:


πŸ’€ friendly reminder that this page is a stub vibe β€” it's got the args and the see-alsos, and that's genuinely all she wrote. no examples, no return value section, no exit statuses, nothing. so we don't hallucinate any, periodt.

and that's the whole page bestie, go forth and allocate 🌟 mwah πŸ’‹

signed off from ./net/nfc, dated October 2026 β€” stay slaying, kernel girlies πŸŽ€πŸ¦‹βœ¨

πŸ“¦ where this page comes from