net/bluetooth/af_bluetooth.c
Source file repositories/reference/linux-study-clean/net/bluetooth/af_bluetooth.c
File Facts
- System
- Linux kernel
- Corpus path
net/bluetooth/af_bluetooth.c- Extension
.c- Size
- 22402 bytes
- Lines
- 1027
- 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.
- Touches user memory; correctness depends on fault-safe copying and privilege boundary handling.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/debugfs.hlinux/stringify.hlinux/sched/signal.hasm/ioctls.hnet/bluetooth/bluetooth.hlinux/proc_fs.hlinux/ethtool.hlinux/sockios.hleds.hselftest.h
Detected Declarations
function bt_sock_reclassify_lockfunction bt_sock_registerfunction bt_sock_unregisterfunction bt_sock_createfunction bt_sock_linkfunction bt_sock_unlinkfunction bt_sock_linkedfunction sk_for_eachfunction bt_accept_enqueuefunction bt_skfunction bt_accept_unlinkfunction bt_sock_recvmsgfunction bt_sock_data_waitfunction bt_sock_stream_recvmsgfunction skb_walk_fragsfunction bt_accept_pollfunction bt_sock_pollfunction bt_ethtool_get_ts_infofunction bt_ethtoolfunction bt_dev_ioctlfunction bt_sock_ioctlfunction bt_sock_wait_statefunction bt_sock_wait_readyfunction bt_seq_stopfunction bt_seq_showfunction bt_procfs_initfunction bt_procfs_cleanupfunction bt_procfs_initfunction bt_procfs_cleanupfunction __stringifyfunction bt_exitmodule init bt_initexport bt_sock_reclassify_lockexport bt_sock_registerexport bt_sock_unregisterexport bt_sock_allocexport bt_sock_linkexport bt_sock_unlinkexport bt_sock_linkedexport bt_accept_enqueueexport bt_accept_unlinkexport bt_accept_dequeueexport bt_sock_recvmsgexport bt_sock_stream_recvmsgexport bt_sock_pollexport bt_sock_ioctlexport bt_sock_wait_stateexport bt_sock_wait_ready
Annotated Snippet
subsys_initcall(bt_init);
module_exit(bt_exit);
MODULE_AUTHOR("Marcel Holtmann <marcel@holtmann.org>");
MODULE_DESCRIPTION("Bluetooth Core ver " VERSION);
MODULE_VERSION(VERSION);
MODULE_LICENSE("GPL");
MODULE_ALIAS_NETPROTO(PF_BLUETOOTH);
Annotation
- Immediate include surface: `linux/module.h`, `linux/debugfs.h`, `linux/stringify.h`, `linux/sched/signal.h`, `asm/ioctls.h`, `net/bluetooth/bluetooth.h`, `linux/proc_fs.h`, `linux/ethtool.h`.
- Detected declarations: `function bt_sock_reclassify_lock`, `function bt_sock_register`, `function bt_sock_unregister`, `function bt_sock_create`, `function bt_sock_link`, `function bt_sock_unlink`, `function bt_sock_linked`, `function sk_for_each`, `function bt_accept_enqueue`, `function bt_sk`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- Implementation status: integration implementation candidate.
- This snippet crosses the user/kernel memory boundary; validate fault handling and access checks before translating the pattern.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.