nfc_targets_found(9)
β¨ nfc_targets_found(9) β¨
okay bestie, welcome to the Kernel API Manual π this one's short but she's important, so let's get into it π«Ά
πΈ NAME πΈ
nfc_targets_found β the lil function that says "bestie, we found targets" β¨
π¦ SYNOPSIS π¦
int nfc_targets_found (struct nfc_dev *dev , struct nfc_target *targets
, int n_targets );
π ARGUMENTS π
devβ the nfc device that found the targets, like the main character who spotted them πtargetsβ array of nfc targets found, literally the whole friend group π«Άn_targetsβ targets array size, aka how many besties are in the group chat π
β DESCRIPTION β
so here's the vibe: the device driver must call this function when one or many nfc targets are found. no cap, it's required π
and after calling this function? the device driver must stop polling for targets. like, wrap it up, the search is over periodt π
π NOTE π
listen up, this part matters fr fr π₯
This function can be called with targets=NULL and n_targets=0 to notify a driver error β meaning that the polling operation cannot complete. so yeah, NULL isn't always a bug, sometimes it's just the sad truth π
IMPORTANT: this function must not be called from an atomic context. that's a hard no, not a vibe check you can pass π«
In addition, it must also not be called from a context that would prevent the NFC Core to call other nfc ops entry point concurrently. like, don't be that person blocking the whole group chat from typing, okay? π
π SEE ALSO π
Kernel file ./net/nfc/core.c β go read her, she's iconic π
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_send_skb(9)nfc_alloc_recv_skb(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)
okay that's the whole page, you ate that π this lil gem lives in ./net/nfc, and she's dated October 2026 β save the date bestie, 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