drivers/bluetooth/hci_ldisc.c
Source file repositories/reference/linux-study-clean/drivers/bluetooth/hci_ldisc.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/bluetooth/hci_ldisc.c- Extension
.c- Size
- 21578 bytes
- Lines
- 972
- Domain
- Driver Families
- Bucket
- drivers/bluetooth
- 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.
- 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/module.hlinux/kernel.hlinux/init.hlinux/types.hlinux/fcntl.hlinux/interrupt.hlinux/ptrace.hlinux/poll.hlinux/slab.hlinux/tty.hlinux/errno.hlinux/string.hlinux/signal.hlinux/ioctl.hlinux/skbuff.hlinux/firmware.hlinux/serdev.hnet/bluetooth/bluetooth.hnet/bluetooth/hci_core.hbtintel.hbtbcm.hhci_uart.h
Detected Declarations
function hci_uart_register_protofunction hci_uart_unregister_protofunction hci_uart_tx_completefunction hci_uart_tx_wakeupfunction hci_uart_write_workfunction hci_uart_init_workfunction hci_uart_init_readyfunction hci_uart_wait_until_sentfunction hci_uart_flushfunction hci_uart_openfunction hci_uart_closefunction hci_uart_send_framefunction hci_uart_has_flow_controlfunction hci_uart_set_flow_controlfunction hci_uart_set_speedsfunction hci_uart_set_baudratefunction hci_uart_setupfunction hci_uart_tty_openfunction hci_uart_tty_closefunction hci_uart_tty_wakeupfunction hci_uart_tty_receivefunction hci_uart_register_devfunction hci_uart_set_protofunction hci_uart_set_flagsfunction callfunction hci_uart_tty_readfunction hci_uart_tty_writefunction hci_uart_initfunction hci_uart_exitmodule init hci_uart_initexport hci_uart_tx_wakeup
Annotated Snippet
module_init(hci_uart_init);
module_exit(hci_uart_exit);
MODULE_AUTHOR("Marcel Holtmann <marcel@holtmann.org>");
MODULE_DESCRIPTION("Bluetooth HCI UART driver ver " VERSION);
MODULE_VERSION(VERSION);
MODULE_LICENSE("GPL");
MODULE_ALIAS_LDISC(N_HCI);
Annotation
- Immediate include surface: `linux/module.h`, `linux/kernel.h`, `linux/init.h`, `linux/types.h`, `linux/fcntl.h`, `linux/interrupt.h`, `linux/ptrace.h`, `linux/poll.h`.
- Detected declarations: `function hci_uart_register_proto`, `function hci_uart_unregister_proto`, `function hci_uart_tx_complete`, `function hci_uart_tx_wakeup`, `function hci_uart_write_work`, `function hci_uart_init_work`, `function hci_uart_init_ready`, `function hci_uart_wait_until_sent`, `function hci_uart_flush`, `function hci_uart_open`.
- Atlas domain: Driver Families / drivers/bluetooth.
- 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.