net/nfc/hci/command.c
Source file repositories/reference/linux-study-clean/net/nfc/hci/command.c
File Facts
- System
- Linux kernel
- Corpus path
net/nfc/hci/command.c- Extension
.c- Size
- 8335 bytes
- Lines
- 345
- Domain
- Networking Core
- Bucket
- Sockets, Protocols, Packet Path, And Network Policy
- Inferred role
- Networking Core: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Networking stack implementation surface: socket APIs, protocol dispatch, packet flow, routing, filtering, and network namespaces.
- Networking stack implementation surface: socket APIs, protocol dispatch, packet flow, routing, filtering, and network namespaces.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- 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/init.hlinux/kernel.hlinux/sched.hlinux/module.hnet/nfc/hci.hhci.h
Detected Declarations
function Copyrightfunction errorfunction nfc_hci_execute_cmdfunction nfc_hci_send_eventfunction nfc_hci_send_cmdfunction nfc_hci_send_cmd_asyncfunction nfc_hci_set_paramfunction nfc_hci_get_paramfunction nfc_hci_open_pipefunction nfc_hci_close_pipefunction nfc_hci_create_pipefunction nfc_hci_delete_pipefunction nfc_hci_clear_all_pipesfunction nfc_hci_disconnect_gatefunction nfc_hci_disconnect_all_gatesfunction nfc_hci_connect_gateexport nfc_hci_send_eventexport nfc_hci_send_cmdexport nfc_hci_send_cmd_asyncexport nfc_hci_set_paramexport nfc_hci_get_paramexport nfc_hci_disconnect_gateexport nfc_hci_disconnect_all_gatesexport nfc_hci_connect_gate
Annotated Snippet
if (nfc_hci_delete_pipe(hdev, pipe) < 0) {
/* TODO: Cannot clean by deleting pipe...
* -> inconsistent state */
}
return r;
}
hdev->pipes[pipe].gate = dest_gate;
hdev->pipes[pipe].dest_host = dest_host;
hdev->gate2pipe[dest_gate] = pipe;
return 0;
}
EXPORT_SYMBOL(nfc_hci_connect_gate);
Annotation
- Immediate include surface: `linux/init.h`, `linux/kernel.h`, `linux/sched.h`, `linux/module.h`, `net/nfc/hci.h`, `hci.h`.
- Detected declarations: `function Copyright`, `function error`, `function nfc_hci_execute_cmd`, `function nfc_hci_send_event`, `function nfc_hci_send_cmd`, `function nfc_hci_send_cmd_async`, `function nfc_hci_set_param`, `function nfc_hci_get_param`, `function nfc_hci_open_pipe`, `function nfc_hci_close_pipe`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- Implementation status: integration implementation candidate.
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.