net/ncsi/ncsi-netlink.c
Source file repositories/reference/linux-study-clean/net/ncsi/ncsi-netlink.c
File Facts
- System
- Linux kernel
- Corpus path
net/ncsi/ncsi-netlink.c- Extension
.c- Size
- 18130 bytes
- Lines
- 779
- 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.
- 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/kernel.hlinux/if_arp.hlinux/rtnetlink.hlinux/etherdevice.hnet/genetlink.hnet/ncsi.hlinux/skbuff.hnet/sock.huapi/linux/ncsi.hinternal.hncsi-pkt.hncsi-netlink.h
Detected Declarations
struct ncsi_devfunction ncsi_write_channel_infofunction ncsi_write_package_infofunction NCSI_FOR_EACH_CHANNELfunction ncsi_pkg_info_nlfunction ncsi_pkg_info_all_nlfunction ncsi_set_interface_nlfunction NCSI_FOR_EACH_CHANNELfunction ncsi_clear_interface_nlfunction NCSI_FOR_EACH_PACKAGEfunction ncsi_send_cmd_nlfunction ncsi_send_netlink_rspfunction ncsi_send_netlink_timeoutfunction ncsi_send_netlink_errfunction ncsi_set_package_mask_nlfunction ncsi_set_channel_mask_nlfunction NCSI_FOR_EACH_CHANNELfunction ncsi_init_netlinkmodule init ncsi_init_netlink
Annotated Snippet
subsys_initcall(ncsi_init_netlink);
Annotation
- Immediate include surface: `linux/module.h`, `linux/kernel.h`, `linux/if_arp.h`, `linux/rtnetlink.h`, `linux/etherdevice.h`, `net/genetlink.h`, `net/ncsi.h`, `linux/skbuff.h`.
- Detected declarations: `struct ncsi_dev`, `function ncsi_write_channel_info`, `function ncsi_write_package_info`, `function NCSI_FOR_EACH_CHANNEL`, `function ncsi_pkg_info_nl`, `function ncsi_pkg_info_all_nl`, `function ncsi_set_interface_nl`, `function NCSI_FOR_EACH_CHANNEL`, `function ncsi_clear_interface_nl`, `function NCSI_FOR_EACH_PACKAGE`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- Implementation status: integration implementation candidate.
- 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.