drivers/nfc/nfcsim.c
Source file repositories/reference/linux-study-clean/drivers/nfc/nfcsim.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/nfc/nfcsim.c- Extension
.c- Size
- 9963 bytes
- Lines
- 496
- Domain
- Driver Families
- Bucket
- drivers/nfc
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/device.hlinux/kernel.hlinux/module.hlinux/ctype.hlinux/debugfs.hlinux/nfc.hnet/nfc/nfc.hnet/nfc/digital.h
Detected Declarations
struct nfcsimstruct nfcsim_linkfunction nfcsim_link_freefunction nfcsim_link_recv_wakefunction nfcsim_link_set_skbfunction nfcsim_link_recv_cancelfunction nfcsim_link_shutdownfunction nfcsim_send_wqfunction nfcsim_recv_wqfunction nfcsim_sendfunction nfcsim_abort_cmdfunction nfcsim_switch_rffunction nfcsim_in_configure_hwfunction nfcsim_in_send_cmdfunction nfcsim_tg_configure_hwfunction nfcsim_tg_send_cmdfunction nfcsim_tg_listenfunction nfcsim_debugfs_initfunction nfcsim_debugfs_removefunction nfcsim_debugfs_init_devfunction nfcsim_device_freefunction nfcsim_initfunction nfcsim_exitmodule init nfcsim_init
Annotated Snippet
module_init(nfcsim_init);
module_exit(nfcsim_exit);
MODULE_DESCRIPTION("NFCSim driver ver " NFCSIM_VERSION);
MODULE_VERSION(NFCSIM_VERSION);
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/device.h`, `linux/kernel.h`, `linux/module.h`, `linux/ctype.h`, `linux/debugfs.h`, `linux/nfc.h`, `net/nfc/nfc.h`, `net/nfc/digital.h`.
- Detected declarations: `struct nfcsim`, `struct nfcsim_link`, `function nfcsim_link_free`, `function nfcsim_link_recv_wake`, `function nfcsim_link_set_skb`, `function nfcsim_link_recv_cancel`, `function nfcsim_link_shutdown`, `function nfcsim_send_wq`, `function nfcsim_recv_wq`, `function nfcsim_send`.
- Atlas domain: Driver Families / drivers/nfc.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.