nfc_alloc_send_skb(9)
π¦ 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 operationskβ the socket that's sending the response π the other half of the sending situationflagsβ theMSG_DONTWAITflag πββοΈ that's the one flag listed here, fr frsizeβ the size to allocate π how much room you're asking for, bestieerrβ 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 π:
nfc_fw_download_done(9)nfc_dev_up(9)nfc_dev_down(9)nfc_start_poll(9)nfc_stop_poll(9)nfc_activate_target(9)nfc_deactivate_target(9)nfc_data_exchange(9)nfc_alloc_recv_skb(9)nfc_targets_found(9)nfc_target_lost(9)nfc_allocate_device(9)nfc_register_device(9)nfc_unregister_rfkill(9)nfc_remove_device(9)nfc_unregister_device(9)
π 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
- 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