nfc_vendor_c...oc_reply_skb(9)
π nfc_vendor_cmd_alloc_reply_skb π
π NAME π
okay so this page is from the Kernel API Manual, and it is literally about allocating a vendor command reply. bestie, the function is nfc_vendor_cmd_alloc_reply_skb, and its whole name-brand vibe is: allocate vendor command reply. β¨
πΈ SYNOPSIS πΈ
struct sk_buff * nfc_vendor_cmd_alloc_reply_skb (struct nfc_dev *dev ,
u32 oui , u32 subcmd , int approxlen );
π¦ ARGUMENTS π¦
devβ the nfc device.ouiβ the vendor oui.subcmdβ-- undescribed --π the original manpage literally says that, so that's all we have.approxlenβ an upper bound of the length of the data that will be put into the skb.
π DESCRIPTION π
This function allocates and pre-fills an skb for a reply to a vendor command. It is intended for a reply, so calling it outside of a vendor command's doit operation is invalid. no cap, do not do that. π
The returned skb is pre-filled with some identifying data in a way that any data that is put into the skb (with skb_put, nla_put or similar) will end up being within the NFC_ATTR_VENDOR_DATA attribute. So all that needs to be done with the skb is adding data for the corresponding userspace tool, which can then read that data out of the vendor data attribute. You must not modify the skb in any other way. periodt. π«Ά
When done, call nfc_vendor_cmd_reply with the skb and return its error code as the result of the doit operation.
β οΈ reminder bestie: this is for replies inside a vendor command's doit operation. anywhere else is invalid. π₯
β RETURN β
An allocated and pre-filled skb. NULL if any errors happen. that's the whole return vibe. π
π SEE ALSO π
- Kernel file
./include/net/nfc/nfc.h struct nfc_target(9)nfc_free_device(9)nfc_set_parent_dev(9)nfc_set_drvdata(9)nfc_get_drvdata(9)nfc_device_name(9)
signing off from source/version land: ./include/net/nfc π dated October 2026 β footer page name is nfc_vendor_c...oc_reply_skb(9). byeee bestie π«Άβ¨
π¦ 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