Home
last modified time | relevance | path

Searched refs:ksmbd_conn (Results 1 – 25 of 28) sorted by relevance

12

/linux-6.12.1/fs/smb/server/
Dconnection.h40 struct ksmbd_conn { struct
114 int (*process_fn)(struct ksmbd_conn *conn); argument
115 int (*terminate_fn)(struct ksmbd_conn *conn);
138 struct ksmbd_conn *conn;
149 bool ksmbd_conn_alive(struct ksmbd_conn *conn);
150 void ksmbd_conn_wait_idle(struct ksmbd_conn *conn);
151 int ksmbd_conn_wait_idle_sess_id(struct ksmbd_conn *curr_conn, u64 sess_id);
152 struct ksmbd_conn *ksmbd_conn_alloc(void);
153 void ksmbd_conn_free(struct ksmbd_conn *conn);
154 bool ksmbd_conn_lookup_dialect(struct ksmbd_conn *c);
[all …]
Dauth.h35 struct ksmbd_conn;
42 int ksmbd_auth_ntlmv2(struct ksmbd_conn *conn, struct ksmbd_session *sess,
46 int blob_len, struct ksmbd_conn *conn,
49 int blob_len, struct ksmbd_conn *conn);
52 struct ksmbd_conn *conn);
55 int ksmbd_sign_smb2_pdu(struct ksmbd_conn *conn, char *key, struct kvec *iov,
57 int ksmbd_sign_smb3_pdu(struct ksmbd_conn *conn, char *key, struct kvec *iov,
60 struct ksmbd_conn *conn);
62 struct ksmbd_conn *conn);
63 int ksmbd_gen_smb30_encryptionkey(struct ksmbd_conn *conn,
[all …]
Dconnection.c33 void ksmbd_conn_free(struct ksmbd_conn *conn) in ksmbd_conn_free()
51 struct ksmbd_conn *ksmbd_conn_alloc(void) in ksmbd_conn_alloc()
53 struct ksmbd_conn *conn; in ksmbd_conn_alloc()
55 conn = kzalloc(sizeof(struct ksmbd_conn), GFP_KERNEL); in ksmbd_conn_alloc()
98 bool ksmbd_conn_lookup_dialect(struct ksmbd_conn *c) in ksmbd_conn_lookup_dialect()
100 struct ksmbd_conn *t; in ksmbd_conn_lookup_dialect()
117 struct ksmbd_conn *conn = work->conn; in ksmbd_conn_enqueue_request()
133 struct ksmbd_conn *conn = work->conn; in ksmbd_conn_try_dequeue_request()
149 void ksmbd_conn_lock(struct ksmbd_conn *conn) in ksmbd_conn_lock()
154 void ksmbd_conn_unlock(struct ksmbd_conn *conn) in ksmbd_conn_unlock()
[all …]
Dsmbacl.h40 struct ksmbd_conn;
95 int smb_inherit_dacl(struct ksmbd_conn *conn, const struct path *path,
97 int smb_check_perm_dacl(struct ksmbd_conn *conn, const struct path *path,
99 int set_info_sec(struct ksmbd_conn *conn, struct ksmbd_tree_connect *tcon,
Doplock.h56 struct ksmbd_conn *conn;
118 struct oplock_info *lookup_lease_in_table(struct ksmbd_conn *conn,
122 void destroy_lease_table(struct ksmbd_conn *conn);
126 int smb2_check_durable_oplock(struct ksmbd_conn *conn,
Dauth.c124 static int calc_ntlmv2_hash(struct ksmbd_conn *conn, struct ksmbd_session *sess, in calc_ntlmv2_hash()
220 int ksmbd_auth_ntlmv2(struct ksmbd_conn *conn, struct ksmbd_session *sess, in ksmbd_auth_ntlmv2()
306 int blob_len, struct ksmbd_conn *conn, in ksmbd_decode_ntlmssp_auth_blob()
387 int blob_len, struct ksmbd_conn *conn) in ksmbd_decode_ntlmssp_neg_blob()
414 struct ksmbd_conn *conn) in ksmbd_build_ntlmssp_challenge_blob()
581 int ksmbd_sign_smb2_pdu(struct ksmbd_conn *conn, char *key, struct kvec *iov, in ksmbd_sign_smb2_pdu()
632 int ksmbd_sign_smb3_pdu(struct ksmbd_conn *conn, char *key, struct kvec *iov, in ksmbd_sign_smb3_pdu()
680 static int generate_key(struct ksmbd_conn *conn, struct ksmbd_session *sess, in generate_key()
768 struct ksmbd_conn *conn, in generate_smb3signingkey()
802 struct ksmbd_conn *conn) in ksmbd_gen_smb30_signingkey()
[all …]
Dasn1.h14 struct ksmbd_conn *conn);
16 struct ksmbd_conn *conn);
Dasn1.c31 struct ksmbd_conn *conn) in ksmbd_decode_negTokenInit()
39 struct ksmbd_conn *conn) in ksmbd_decode_negTokenTarg()
183 struct ksmbd_conn *conn = context; in ksmbd_neg_token_init_mech_type()
215 struct ksmbd_conn *conn = context; in ksmbd_neg_token_alloc()
Dsmb_common.h409 int (*generate_signingkey)(struct ksmbd_session *sess, struct ksmbd_conn *conn);
410 int (*generate_encryptionkey)(struct ksmbd_conn *conn, struct ksmbd_session *sess);
426 bool ksmbd_smb_request(struct ksmbd_conn *conn);
430 int ksmbd_init_smb_server(struct ksmbd_conn *conn);
438 int (*fn)(struct ksmbd_conn *,
443 int ksmbd_extract_shortname(struct ksmbd_conn *conn,
Dsmb2pdu.h427 void init_smb2_1_server(struct ksmbd_conn *conn);
428 void init_smb3_0_server(struct ksmbd_conn *conn);
429 void init_smb3_02_server(struct ksmbd_conn *conn);
430 int init_smb3_11_server(struct ksmbd_conn *conn);
462 struct ksmbd_conn *conn);
469 bool smb3_encryption_negotiated(struct ksmbd_conn *conn);
Dsmb_common.c159 bool ksmbd_smb_request(struct ksmbd_conn *conn) in ksmbd_smb_request()
404 static int init_smb1_server(struct ksmbd_conn *conn) in init_smb1_server()
413 int ksmbd_init_smb_server(struct ksmbd_conn *conn) in ksmbd_init_smb_server()
433 int (*fn)(struct ksmbd_conn *, int, in ksmbd_populate_dot_dotdot_entries() argument
438 struct ksmbd_conn *conn = work->conn; in ksmbd_populate_dot_dotdot_entries()
498 int ksmbd_extract_shortname(struct ksmbd_conn *conn, const char *longname, in ksmbd_extract_shortname()
567 static int __smb2_negotiate(struct ksmbd_conn *conn) in __smb2_negotiate()
592 struct ksmbd_conn *conn = work->conn; in ksmbd_smb_negotiate_common()
Dksmbd_work.h12 struct ksmbd_conn;
30 struct ksmbd_conn *conn;
Dserver.c108 static int __process_request(struct ksmbd_work *work, struct ksmbd_conn *conn, in __process_request()
164 struct ksmbd_conn *conn) in __handle_ksmbd_work()
265 struct ksmbd_conn *conn = work->conn; in handle_ksmbd_work()
290 static int queue_ksmbd_work(struct ksmbd_conn *conn) in queue_ksmbd_work()
323 static int ksmbd_server_process_request(struct ksmbd_conn *conn) in ksmbd_server_process_request()
328 static int ksmbd_server_terminate_conn(struct ksmbd_conn *conn) in ksmbd_server_terminate_conn()
Dvfs.h38 struct ksmbd_conn;
147 int ksmbd_vfs_set_sd_xattr(struct ksmbd_conn *conn,
152 int ksmbd_vfs_get_sd_xattr(struct ksmbd_conn *conn,
Dsmb2ops.c198 void init_smb2_1_server(struct ksmbd_conn *conn) in init_smb2_1_server()
215 void init_smb3_0_server(struct ksmbd_conn *conn) in init_smb3_0_server()
245 void init_smb3_02_server(struct ksmbd_conn *conn) in init_smb3_02_server()
274 int init_smb3_11_server(struct ksmbd_conn *conn) in init_smb3_11_server()
Dvfs_cache.h29 struct ksmbd_conn;
80 struct ksmbd_conn *conn;
Dsmb2pdu.c62 static inline bool check_session_id(struct ksmbd_conn *conn, u64 id) in check_session_id()
76 struct channel *lookup_chann_list(struct ksmbd_session *sess, struct ksmbd_conn *conn) in lookup_chann_list()
254 struct ksmbd_conn *conn = work->conn; in init_smb2_neg_rsp()
315 struct ksmbd_conn *conn = work->conn; in smb2_set_rsp_credits()
571 struct ksmbd_conn *conn = work->conn; in smb2_check_user_session()
648 struct ksmbd_conn *conn = work->conn; in setup_async_work()
677 struct ksmbd_conn *conn = work->conn; in release_async_work()
822 static unsigned int assemble_neg_contexts(struct ksmbd_conn *conn, in assemble_neg_contexts()
876 static __le32 decode_preauth_ctxt(struct ksmbd_conn *conn, in decode_preauth_ctxt()
895 static void decode_encrypt_ctxt(struct ksmbd_conn *conn, in decode_encrypt_ctxt()
[all …]
Doplock.c33 struct ksmbd_conn *conn = work->conn; in alloc_opinfo()
704 struct ksmbd_conn *conn = opinfo->conn; in smb2_oplock_break_noti()
805 struct ksmbd_conn *conn = opinfo->conn; in smb2_lease_break_noti()
946 void destroy_lease_table(struct ksmbd_conn *conn) in destroy_lease_table()
1342 struct ksmbd_conn *conn = work->conn; in smb_break_all_levII_oplock()
1757 struct oplock_info *lookup_lease_in_table(struct ksmbd_conn *conn, in lookup_lease_in_table()
1804 int smb2_check_durable_oplock(struct ksmbd_conn *conn, in smb2_check_durable_oplock()
Dtransport_tcp.c77 struct ksmbd_conn *conn; in alloc_transport()
313 struct ksmbd_conn *conn = KSMBD_TRANS(t)->conn; in ksmbd_tcp_readv()
Dsmb2misc.c301 static int smb2_validate_credit_charge(struct ksmbd_conn *conn, in smb2_validate_credit_charge()
Dsmbacl.c998 int smb_inherit_dacl(struct ksmbd_conn *conn, in smb_inherit_dacl()
1215 int smb_check_perm_dacl(struct ksmbd_conn *conn, const struct path *path, in smb_check_perm_dacl()
1381 int set_info_sec(struct ksmbd_conn *conn, struct ksmbd_tree_connect *tcon, in set_info_sec()
/linux-6.12.1/fs/smb/server/mgmt/
Duser_session.h23 struct ksmbd_conn *conn;
88 struct ksmbd_session *ksmbd_session_lookup(struct ksmbd_conn *conn,
90 int ksmbd_session_register(struct ksmbd_conn *conn,
92 void ksmbd_sessions_deregister(struct ksmbd_conn *conn);
94 struct ksmbd_session *ksmbd_session_lookup_all(struct ksmbd_conn *conn,
96 void destroy_previous_session(struct ksmbd_conn *conn,
98 struct preauth_session *ksmbd_preauth_session_alloc(struct ksmbd_conn *conn,
100 struct preauth_session *ksmbd_preauth_session_lookup(struct ksmbd_conn *conn,
Duser_session.c176 static void ksmbd_expire_session(struct ksmbd_conn *conn) in ksmbd_expire_session()
198 int ksmbd_session_register(struct ksmbd_conn *conn, in ksmbd_session_register()
207 static int ksmbd_chann_del(struct ksmbd_conn *conn, struct ksmbd_session *sess) in ksmbd_chann_del()
219 void ksmbd_sessions_deregister(struct ksmbd_conn *conn) in ksmbd_sessions_deregister()
259 struct ksmbd_session *ksmbd_session_lookup(struct ksmbd_conn *conn, in ksmbd_session_lookup()
283 struct ksmbd_session *ksmbd_session_lookup_all(struct ksmbd_conn *conn, in ksmbd_session_lookup_all()
312 struct preauth_session *ksmbd_preauth_session_alloc(struct ksmbd_conn *conn, in ksmbd_preauth_session_alloc()
329 void destroy_previous_session(struct ksmbd_conn *conn, in destroy_previous_session()
371 struct preauth_session *ksmbd_preauth_session_lookup(struct ksmbd_conn *conn, in ksmbd_preauth_session_lookup()
Dtree_connect.h15 struct ksmbd_conn;
Dtree_connect.c26 struct ksmbd_conn *conn = work->conn; in ksmbd_tree_conn_connect()

12