drivers/net/can/dev/dev.c
Source file repositories/reference/linux-study-clean/drivers/net/can/dev/dev.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/can/dev/dev.c- Extension
.c- Size
- 17234 bytes
- Lines
- 690
- Domain
- Driver Families
- Bucket
- drivers/net
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/can.hlinux/can/can-ml.hlinux/can/dev.hlinux/can/skb.hlinux/gpio/consumer.hlinux/if_arp.hlinux/kernel.hlinux/netdevice.hlinux/of.hlinux/slab.hlinux/workqueue.h
Detected Declarations
function Copyrightfunction can_tx_state_to_framefunction can_rx_state_to_framefunction can_state_err_to_statefunction can_state_get_by_berr_counterfunction can_change_statefunction can_restartfunction can_restart_workfunction can_restart_nowfunction can_bus_offfunction can_setupfunction free_candevfunction can_set_default_mtufunction can_set_cap_infofunction can_set_static_ctrlmodefunction can_hwtstamp_getfunction can_hwtstamp_setfunction can_ethtool_op_get_ts_info_hwtsfunction open_candevfunction of_can_transceiverfunction close_candevfunction can_set_terminationfunction can_get_terminationfunction can_bittiming_const_validfunction register_candevfunction unregister_candevfunction can_dev_initfunction can_dev_exitmodule init can_dev_initexport can_get_state_strexport can_get_ctrlmode_strexport can_state_get_by_berr_counterexport can_change_stateexport can_bus_offexport alloc_candev_mqsexport free_candevexport can_set_static_ctrlmodeexport can_hwtstamp_getexport can_hwtstamp_setexport can_ethtool_op_get_ts_info_hwtsexport open_candevexport of_can_transceiverexport close_candevexport register_candevexport unregister_candevexport safe_candev_priv
Annotated Snippet
module_init(can_dev_init);
static __exit void can_dev_exit(void)
{
can_netlink_unregister();
}
module_exit(can_dev_exit);
MODULE_ALIAS_RTNL_LINK("can");
Annotation
- Immediate include surface: `linux/can.h`, `linux/can/can-ml.h`, `linux/can/dev.h`, `linux/can/skb.h`, `linux/gpio/consumer.h`, `linux/if_arp.h`, `linux/kernel.h`, `linux/netdevice.h`.
- Detected declarations: `function Copyright`, `function can_tx_state_to_frame`, `function can_rx_state_to_frame`, `function can_state_err_to_state`, `function can_state_get_by_berr_counter`, `function can_change_state`, `function can_restart`, `function can_restart_work`, `function can_restart_now`, `function can_bus_off`.
- Atlas domain: Driver Families / drivers/net.
- 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.