net/bluetooth/bnep/core.c
Source file repositories/reference/linux-study-clean/net/bluetooth/bnep/core.c
File Facts
- System
- Linux kernel
- Corpus path
net/bluetooth/bnep/core.c- Extension
.c- Size
- 17397 bytes
- Lines
- 789
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/kthread.hlinux/file.hlinux/etherdevice.hlinux/unaligned.hnet/bluetooth/bluetooth.hnet/bluetooth/l2cap.hnet/bluetooth/hci_core.hbnep.h
Detected Declarations
function __bnep_link_sessionfunction __bnep_unlink_sessionfunction bnep_sendfunction bnep_send_rspfunction bnep_set_default_proto_filterfunction bnep_ctrl_set_netfilterfunction bnep_ctrl_set_mcfilterfunction bnep_rx_control_cmdfunction bnep_rx_controlfunction bnep_rx_extensionfunction bnep_rx_framefunction bnep_tx_framefunction bnep_sessionfunction bnep_add_connectionfunction bnep_del_connectionfunction __bnep_copy_cifunction bnep_get_connlistfunction list_for_each_entryfunction bnep_get_conninfofunction bnep_initfunction bnep_exitmodule init bnep_init
Annotated Snippet
module_init(bnep_init);
module_exit(bnep_exit);
module_param(compress_src, bool, 0644);
MODULE_PARM_DESC(compress_src, "Compress sources headers");
module_param(compress_dst, bool, 0644);
MODULE_PARM_DESC(compress_dst, "Compress destination headers");
MODULE_AUTHOR("Marcel Holtmann <marcel@holtmann.org>");
MODULE_DESCRIPTION("Bluetooth BNEP ver " VERSION);
MODULE_VERSION(VERSION);
MODULE_LICENSE("GPL");
MODULE_ALIAS("bt-proto-4");
Annotation
- Immediate include surface: `linux/module.h`, `linux/kthread.h`, `linux/file.h`, `linux/etherdevice.h`, `linux/unaligned.h`, `net/bluetooth/bluetooth.h`, `net/bluetooth/l2cap.h`, `net/bluetooth/hci_core.h`.
- Detected declarations: `function __bnep_link_session`, `function __bnep_unlink_session`, `function bnep_send`, `function bnep_send_rsp`, `function bnep_set_default_proto_filter`, `function bnep_ctrl_set_netfilter`, `function bnep_ctrl_set_mcfilter`, `function bnep_rx_control_cmd`, `function bnep_rx_control`, `function bnep_rx_extension`.
- 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.
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.