net/ceph/ceph_common.c
Source file repositories/reference/linux-study-clean/net/ceph/ceph_common.c
File Facts
- System
- Linux kernel
- Corpus path
net/ceph/ceph_common.c- Extension
.c- Size
- 23481 bytes
- Lines
- 926
- 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/ceph/ceph_debug.hlinux/backing-dev.hlinux/ctype.hlinux/fs.hlinux/inet.hlinux/in6.hlinux/key.hkeys/ceph-type.hlinux/module.hlinux/mount.hlinux/nsproxy.hlinux/fs_parser.hlinux/sched.hlinux/sched/mm.hlinux/seq_file.hlinux/slab.hlinux/statfs.hlinux/string.hlinux/vmalloc.hlinux/ceph/ceph_features.hlinux/ceph/libceph.hlinux/ceph/debugfs.hlinux/ceph/decode.hlinux/ceph/mon_client.hlinux/ceph/auth.hcrypto.h
Detected Declarations
enum ceph_ms_modefunction callerfunction param_get_supported_featuresfunction ceph_check_fsidfunction strcmp_nullfunction ceph_compare_optionsfunction ceph_parse_fsidfunction ceph_destroy_optionsfunction get_secretfunction ceph_parse_mon_ipsfunction ceph_parse_paramfunction ceph_print_client_optionsfunction ceph_client_gidfunction ceph_destroy_clientfunction ceph_reset_client_addrfunction __ceph_open_sessionfunction ceph_open_sessionfunction ceph_wait_for_latest_osdmapfunction init_ceph_libfunction exit_ceph_libmodule init init_ceph_libexport libceph_compatibleexport ceph_msg_type_nameexport ceph_check_fsidexport ceph_compare_optionsexport ceph_parse_fsidexport ceph_alloc_optionsexport ceph_destroy_optionsexport ceph_parse_mon_ipsexport ceph_parse_paramexport ceph_print_client_optionsexport ceph_client_addrexport ceph_client_gidexport ceph_create_clientexport ceph_destroy_clientexport ceph_reset_client_addrexport __ceph_open_sessionexport ceph_open_sessionexport ceph_wait_for_latest_osdmap
Annotated Snippet
module_init(init_ceph_lib);
module_exit(exit_ceph_lib);
MODULE_AUTHOR("Sage Weil <sage@newdream.net>");
MODULE_AUTHOR("Yehuda Sadeh <yehuda@hq.newdream.net>");
MODULE_AUTHOR("Patience Warnick <patience@newdream.net>");
MODULE_DESCRIPTION("Ceph core library");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/ceph/ceph_debug.h`, `linux/backing-dev.h`, `linux/ctype.h`, `linux/fs.h`, `linux/inet.h`, `linux/in6.h`, `linux/key.h`, `keys/ceph-type.h`.
- Detected declarations: `enum ceph_ms_mode`, `function caller`, `function param_get_supported_features`, `function ceph_check_fsid`, `function strcmp_null`, `function ceph_compare_options`, `function ceph_parse_fsid`, `function ceph_destroy_options`, `function get_secret`, `function ceph_parse_mon_ips`.
- 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.