net/netlabel/netlabel_kapi.c
Source file repositories/reference/linux-study-clean/net/netlabel/netlabel_kapi.c
File Facts
- System
- Linux kernel
- Corpus path
net/netlabel/netlabel_kapi.c- Extension
.c- Size
- 38898 bytes
- Lines
- 1557
- 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.
- 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/init.hlinux/types.hlinux/slab.hlinux/audit.hlinux/in.hlinux/in6.hnet/ip.hnet/ipv6.hnet/netlabel.hnet/cipso_ipv4.hnet/calipso.hasm/bug.hlinux/atomic.hnetlabel_domainhash.hnetlabel_unlabeled.hnetlabel_cipso_v4.hnetlabel_calipso.hnetlabel_user.hnetlabel_mgmt.hnetlabel_addrlist.h
Detected Declarations
function netlbl_cfg_map_delfunction netlbl_cfg_unlbl_map_addfunction netlbl_cfg_unlbl_static_addfunction netlbl_cfg_unlbl_static_delfunction netlbl_cfg_cipsov4_addfunction netlbl_cfg_cipsov4_delfunction netlbl_cfg_cipsov4_map_addfunction netlbl_cfg_calipso_addfunction netlbl_cfg_calipso_delfunction netlbl_cfg_calipso_map_addfunction netlbl_catmap_walkfunction netlbl_catmap_walkrngfunction netlbl_catmap_getlongfunction netlbl_catmap_setbitfunction netlbl_catmap_setrngfunction netlbl_catmap_setlongfunction netlbl_bitmap_walkfunction netlbl_bitmap_setbitfunction netlbl_enabledfunction selectorsfunction netlbl_sock_delattrfunction netlbl_sock_getattrfunction netlbl_sk_lock_checkfunction netlbl_sk_lock_checkfunction netlbl_conn_setattrfunction netlbl_req_setattrfunction netlbl_req_delattrfunction netlbl_skbuff_setattrfunction netlbl_skbuff_getattrfunction problemfunction netlbl_cache_invalidatefunction netlbl_cache_addfunction netlbl_initmodule init netlbl_initexport netlbl_catmap_walkexport netlbl_catmap_setbitexport netlbl_bitmap_walkexport netlbl_bitmap_setbitexport netlbl_audit_start
Annotated Snippet
subsys_initcall(netlbl_init);
Annotation
- Immediate include surface: `linux/init.h`, `linux/types.h`, `linux/slab.h`, `linux/audit.h`, `linux/in.h`, `linux/in6.h`, `net/ip.h`, `net/ipv6.h`.
- Detected declarations: `function netlbl_cfg_map_del`, `function netlbl_cfg_unlbl_map_add`, `function netlbl_cfg_unlbl_static_add`, `function netlbl_cfg_unlbl_static_del`, `function netlbl_cfg_cipsov4_add`, `function netlbl_cfg_cipsov4_del`, `function netlbl_cfg_cipsov4_map_add`, `function netlbl_cfg_calipso_add`, `function netlbl_cfg_calipso_del`, `function netlbl_cfg_calipso_map_add`.
- 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.