fs/smb/server/server.c
Source file repositories/reference/linux-study-clean/fs/smb/server/server.c
File Facts
- System
- Linux kernel
- Corpus path
fs/smb/server/server.c- Extension
.c- Size
- 15126 bytes
- Lines
- 661
- Domain
- Core OS
- Bucket
- VFS And Filesystem Core
- Inferred role
- Core OS: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- 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
glob.hoplock.hmisc.hlinux/sched/signal.hlinux/workqueue.hlinux/sysfs.hlinux/module.hlinux/moduleparam.hserver.hsmb_common.h../common/smb2status.hconnection.htransport_ipc.hmgmt/user_session.hcrypto_ctx.hauth.hstats.hcompress.h
Detected Declarations
struct server_ctrl_structenum SERVER_CTRL_TYPEfunction ___server_conf_setfunction ksmbd_set_netbios_namefunction ksmbd_set_server_stringfunction ksmbd_set_work_groupfunction check_conn_statefunction __process_requestfunction __handle_ksmbd_workfunction smb2_set_rsp_creditsfunction handle_ksmbd_workfunction queue_ksmbd_workfunction ksmbd_server_process_requestfunction ksmbd_server_terminate_connfunction ksmbd_server_tcp_callbacks_initfunction server_conf_freefunction server_conf_initfunction server_ctrl_handle_initfunction server_ctrl_handle_resetfunction server_ctrl_handle_workfunction __queue_ctrl_workfunction server_queue_ctrl_init_workfunction server_queue_ctrl_reset_workfunction stats_showfunction kill_server_storefunction debug_showfunction debug_storefunction ksmbd_server_shutdownfunction ksmbd_server_initfunction ksmbd_server_exitmodule init ksmbd_server_init
Annotated Snippet
module_init(ksmbd_server_init)
module_exit(ksmbd_server_exit)
Annotation
- Immediate include surface: `glob.h`, `oplock.h`, `misc.h`, `linux/sched/signal.h`, `linux/workqueue.h`, `linux/sysfs.h`, `linux/module.h`, `linux/moduleparam.h`.
- Detected declarations: `struct server_ctrl_struct`, `enum SERVER_CTRL_TYPE`, `function ___server_conf_set`, `function ksmbd_set_netbios_name`, `function ksmbd_set_server_string`, `function ksmbd_set_work_group`, `function check_conn_state`, `function __process_request`, `function __handle_ksmbd_work`, `function smb2_set_rsp_credits`.
- Atlas domain: Core OS / VFS And Filesystem Core.
- 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.