ENUM NFC_ATTRS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 ENUM NFC_ATTRS 🌸

okay bestie, gather round, because this is the enum nfc_attrs page from the Kernel API Manual and it's literally the master list of supported nfc attributes. think of it as the group chat roster for NFC stuff in the kernel β€” every attribute that gets to be in the enum is listed here, no gatekeeping πŸ’…


✨ SYNOPSIS ✨

here's the whole enum, exactly as it lives in the source β€” do not touch, do not "fix", just vibe with it:

enum nfc_attrs {
    NFC_ATTR_UNSPEC ,
    NFC_ATTR_DEVICE_INDEX ,
    NFC_ATTR_DEVICE_NAME ,
    NFC_ATTR_PROTOCOLS ,
    NFC_ATTR_TARGET_INDEX ,
    NFC_ATTR_TARGET_SENS_RES ,
    NFC_ATTR_TARGET_SEL_RES ,
    NFC_ATTR_TARGET_NFCID1 ,
    NFC_ATTR_TARGET_SENSB_RES ,
    NFC_ATTR_TARGET_SENSF_RES ,
    NFC_ATTR_COMM_MODE ,
    NFC_ATTR_RF_MODE ,
    NFC_ATTR_DEVICE_POWERED ,
    NFC_ATTR_IM_PROTOCOLS ,
    NFC_ATTR_TM_PROTOCOLS ,
    NFC_ATTR_LLC_PARAM_LTO ,
    NFC_ATTR_LLC_PARAM_RW ,
    NFC_ATTR_LLC_PARAM_MIUX ,
    NFC_ATTR_SE ,
    NFC_ATTR_LLC_SDP ,
    NFC_ATTR_FIRMWARE_NAME ,
    NFC_ATTR_SE_INDEX ,
    NFC_ATTR_SE_TYPE ,
    NFC_ATTR_SE_AID ,
    NFC_ATTR_FIRMWARE_DOWNLOAD_STATUS ,
    NFC_ATTR_SE_APDU ,
    NFC_ATTR_TARGET_ISO15693_DSFID ,
    NFC_ATTR_TARGET_ISO15693_UID ,
    NFC_ATTR_SE_PARAMS ,
    NFC_ATTR_VENDOR_ID ,
    NFC_ATTR_VENDOR_SUBCMD ,
    NFC_ATTR_VENDOR_DATA ,
    NFC_ATTR_TARGET_ATS

};

πŸŽ€ CONSTANTS πŸŽ€

okay so now the actual lore, one attribute at a time. no skips, we're reading the whole syllabus πŸ“šβœ¨

  • NFC_ATTR_UNSPEC β€” the unspecified attribute. it's giving "no thoughts, head empty" placeholder energy πŸ™ˆ
  • NFC_ATTR_DEVICE_INDEX β€” index of the nfc device. it's the device's little ID number 🎫
  • NFC_ATTR_DEVICE_NAME β€” device name, and heads up: max 8 chars. eight. that's it. keep it cute and short πŸ“
  • NFC_ATTR_PROTOCOLS β€” nfc protocols, as a bitwise or-ed combination from the NFC_PROTO_*_MASK constants. mix and match, bestie 🌈
  • NFC_ATTR_TARGET_INDEX β€” index of the nfc target 🎯
  • NFC_ATTR_TARGET_SENS_RES β€” NFC-A targets extra information such as NFCID ✨
  • NFC_ATTR_TARGET_SEL_RES β€” NFC-A targets extra information, and the manpage literally says it's useful if the target is not NFC-Forum compliant β€” so like, for the rebels πŸ’€
  • NFC_ATTR_TARGET_NFCID1 β€” NFC-A targets identifier, max 10 bytes πŸ”Ÿ
  • NFC_ATTR_TARGET_SENSB_RES β€” NFC-B targets extra information, max 12 bytes πŸ’™
  • NFC_ATTR_TARGET_SENSF_RES β€” NFC-F targets extra information, max 18 bytes 🌸
  • NFC_ATTR_COMM_MODE β€” passive or active mode. pick your era πŸ‘‘
  • NFC_ATTR_RF_MODE β€” initiator or target. are you the one sliding into the DMs or the one receiving? πŸ‘€
  • NFC_ATTR_DEVICE_POWERED β€” -- undescribed --. yeah. the manpage said nothing. we know nothing. iconically mysterious πŸ«₯
  • NFC_ATTR_IM_PROTOCOLS β€” initiator mode protocols to poll for πŸ“‘
  • NFC_ATTR_TM_PROTOCOLS β€” target mode protocols to listen for πŸ‘‚
  • NFC_ATTR_LLC_PARAM_LTO β€” Link TimeOut parameter ⏳
  • NFC_ATTR_LLC_PARAM_RW β€” Receive Window size parameter πŸͺŸ
  • NFC_ATTR_LLC_PARAM_MIUX β€” MIU eXtension parameter. the x is capitalized, respect it βœ–οΈ
  • NFC_ATTR_SE β€” Available Secure Elements πŸ”
  • NFC_ATTR_LLC_SDP β€” -- undescribed -- again. the void stares back πŸ•³οΈ
  • NFC_ATTR_FIRMWARE_NAME β€” Free format firmware version. free format means go off, no rules 🎨
  • NFC_ATTR_SE_INDEX β€” secure element index πŸ”’
  • NFC_ATTR_SE_TYPE β€” secure element type, and the options are (UICC or EMBEDDED) πŸ’³
  • NFC_ATTR_SE_AID β€” -- undescribed --. third mystery of the page, we love a cryptic queen πŸ™ˆ
  • NFC_ATTR_FIRMWARE_DOWNLOAD_STATUS β€” firmware download operation status πŸ“₯
  • NFC_ATTR_SE_APDU β€” secure element APDU πŸ“¨
  • NFC_ATTR_TARGET_ISO15693_DSFID β€” ISO 15693 Data Storage Format Identifier 🏷️
  • NFC_ATTR_TARGET_ISO15693_UID β€” ISO 15693 Unique Identifier. unique, like you πŸ¦‹
  • NFC_ATTR_SE_PARAMS β€” parameters data from an evt_transaction πŸ“¦
  • NFC_ATTR_VENDOR_ID β€” NFC manufacturer unique ID, typically an OUI 🏭
  • NFC_ATTR_VENDOR_SUBCMD β€” vendor specific sub command πŸ› οΈ
  • NFC_ATTR_VENDOR_DATA β€” vendor specific data, to be optionally passed to a vendor specific command implementation. optional! no pressure 🫢
  • NFC_ATTR_TARGET_ATS β€” ISO 14443 type A target Answer To Select. ATS, not the other thing πŸ’¬

πŸ‘€ SEE ALSO πŸ‘€

go read these next, i promise they're worth it:

  • Kernel file ./include/uapi/linux/nfc.h
  • enum nfc_commands(9)

okay that's the whole page, you ate that honestly πŸ’…πŸ”₯ this came from ./include/uapi/linux, dated October 2026 β€” stay iconic, bestie, and go read your headers πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from