fs/smb/server/mgmt/tree_connect.h
Source file repositories/reference/linux-study-clean/fs/smb/server/mgmt/tree_connect.h
File Facts
- System
- Linux kernel
- Corpus path
fs/smb/server/mgmt/tree_connect.h- Extension
.h- Size
- 1397 bytes
- Lines
- 65
- Domain
- Core OS
- Bucket
- VFS And Filesystem Core
- Inferred role
- Core OS: implementation source
- Status
- source 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.
- 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/hashtable.h../ksmbd_netlink.h
Detected Declarations
struct ksmbd_share_configstruct ksmbd_userstruct ksmbd_connstruct ksmbd_workstruct ksmbd_tree_connectstruct ksmbd_tree_conn_statusstruct ksmbd_sessionfunction test_tree_conn_flag
Annotated Snippet
struct ksmbd_tree_connect {
int id;
unsigned int flags;
struct ksmbd_share_config *share_conf;
struct ksmbd_user *user;
struct list_head list;
int maximal_access;
bool posix_extensions;
atomic_t refcount;
unsigned int t_state;
};
struct ksmbd_tree_conn_status {
unsigned int ret;
struct ksmbd_tree_connect *tree_conn;
};
static inline int test_tree_conn_flag(struct ksmbd_tree_connect *tree_conn,
int flag)
{
return tree_conn->flags & flag;
}
struct ksmbd_session;
struct ksmbd_tree_conn_status
ksmbd_tree_conn_connect(struct ksmbd_work *work, const char *share_name);
void ksmbd_tree_connect_put(struct ksmbd_tree_connect *tcon);
int ksmbd_tree_conn_disconnect(struct ksmbd_session *sess,
struct ksmbd_tree_connect *tree_conn);
struct ksmbd_tree_connect *ksmbd_tree_conn_lookup(struct ksmbd_session *sess,
unsigned int id);
int ksmbd_tree_conn_session_logoff(struct ksmbd_session *sess);
#endif /* __TREE_CONNECT_MANAGEMENT_H__ */
Annotation
- Immediate include surface: `linux/hashtable.h`, `../ksmbd_netlink.h`.
- Detected declarations: `struct ksmbd_share_config`, `struct ksmbd_user`, `struct ksmbd_conn`, `struct ksmbd_work`, `struct ksmbd_tree_connect`, `struct ksmbd_tree_conn_status`, `struct ksmbd_session`, `function test_tree_conn_flag`.
- Atlas domain: Core OS / VFS And Filesystem Core.
- Implementation status: source 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.