nfc_target_lost(9)
π nfc_target_lost(9) π
okay bestie, welcome to the Kernel API Manual, section 9 β this is the little page that tells you how to break the news that a target ghosted the field π¦
β¨ NAME β¨
nfc_target_lost β the "hey, that activated target just dipped out of the field" announcement π¨
β¨ SYNOPSIS β¨
int nfc_target_lost (struct nfc_dev *dev , u32 target_idx );
no cap, that's the whole signature π«Ά
β¨ ARGUMENTS β¨
devβ the nfc device that had the activated target in field. like, the one that's gonna be emotionally affected by the loss πtarget_idxβ the nfc index of the target. its little ID number, so everyone knows which target left π
β¨ DESCRIPTION β¨
so here's the situation: the device driver must call this function when the activated target goes out of the field. that's it, that's the job β being the messenger π§
β οΈ IMPORTANT β οΈ bestie please read this part, it's giving serious: this function must not be called from an atomic context. literally do not. π 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. so like... don't block the NFC Core from doing its other nfc ops entry point calls at the same time, ykwim? respect the concurrency, periodt π
β¨ SEE ALSO β¨
the kernel file lives at ./net/nfc/core.c β go say hi to it, it's iconic π
and it's friends with literally everyone:
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_targets_found(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, ily, go call nfc_target_lost responsibly and never from an atomic context πβ¨
mwah π
this cutie was brought to you by ./net/nfc, dated October 2026, and honestly it's still nfc_target_lost(9) at heart ππ¦π
π¦ 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