/linux-6.1.9/fs/ksmbd/ |
D | smb2pdu.h | 467 bool is_smb2_neg_cmd(struct ksmbd_work *work); 468 bool is_smb2_rsp(struct ksmbd_work *work); 470 u16 get_smb2_cmd_val(struct ksmbd_work *work); 471 void set_smb2_rsp_status(struct ksmbd_work *work, __le32 err); 472 int init_smb2_rsp_hdr(struct ksmbd_work *work); 473 int smb2_allocate_rsp_buf(struct ksmbd_work *work); 474 bool is_chained_smb2_message(struct ksmbd_work *work); 475 int init_smb2_neg_rsp(struct ksmbd_work *work); 476 void smb2_set_err_rsp(struct ksmbd_work *work); 477 int smb2_check_user_session(struct ksmbd_work *work); [all …]
|
D | vfs.h | 36 struct ksmbd_work; 79 int ksmbd_vfs_create(struct ksmbd_work *work, const char *name, umode_t mode); 80 int ksmbd_vfs_mkdir(struct ksmbd_work *work, const char *name, umode_t mode); 81 int ksmbd_vfs_read(struct ksmbd_work *work, struct ksmbd_file *fp, 83 int ksmbd_vfs_write(struct ksmbd_work *work, struct ksmbd_file *fp, 86 int ksmbd_vfs_fsync(struct ksmbd_work *work, u64 fid, u64 p_id); 87 int ksmbd_vfs_remove_file(struct ksmbd_work *work, char *name); 88 int ksmbd_vfs_link(struct ksmbd_work *work, 91 int ksmbd_vfs_fp_rename(struct ksmbd_work *work, struct ksmbd_file *fp, 93 int ksmbd_vfs_truncate(struct ksmbd_work *work, [all …]
|
D | smb_common.h | 413 u16 (*get_cmd_val)(struct ksmbd_work *swork); 414 int (*init_rsp_hdr)(struct ksmbd_work *swork); 415 void (*set_rsp_status)(struct ksmbd_work *swork, __le32 err); 416 int (*allocate_rsp_buf)(struct ksmbd_work *work); 417 int (*set_rsp_credits)(struct ksmbd_work *work); 418 int (*check_user_session)(struct ksmbd_work *work); 419 int (*get_ksmbd_tcon)(struct ksmbd_work *work); 420 bool (*is_sign_req)(struct ksmbd_work *work, unsigned int command); 421 int (*check_sign_req)(struct ksmbd_work *work); 422 void (*set_sign_rsp)(struct ksmbd_work *work); [all …]
|
D | connection.h | 149 int ksmbd_conn_write(struct ksmbd_work *work); 158 void ksmbd_conn_enqueue_request(struct ksmbd_work *work); 159 int ksmbd_conn_try_dequeue_request(struct ksmbd_work *work); 171 static inline bool ksmbd_conn_good(struct ksmbd_work *work) in ksmbd_conn_good() 176 static inline bool ksmbd_conn_need_negotiate(struct ksmbd_work *work) in ksmbd_conn_need_negotiate() 181 static inline bool ksmbd_conn_need_reconnect(struct ksmbd_work *work) in ksmbd_conn_need_reconnect() 186 static inline bool ksmbd_conn_exiting(struct ksmbd_work *work) in ksmbd_conn_exiting() 191 static inline void ksmbd_conn_set_good(struct ksmbd_work *work) in ksmbd_conn_set_good() 196 static inline void ksmbd_conn_set_need_negotiate(struct ksmbd_work *work) in ksmbd_conn_set_need_negotiate() 201 static inline void ksmbd_conn_set_need_reconnect(struct ksmbd_work *work) in ksmbd_conn_set_need_reconnect() [all …]
|
D | vfs_cache.h | 128 int ksmbd_close_fd(struct ksmbd_work *work, u64 id); 129 struct ksmbd_file *ksmbd_lookup_fd_fast(struct ksmbd_work *work, u64 id); 130 struct ksmbd_file *ksmbd_lookup_foreign_fd(struct ksmbd_work *work, u64 id); 131 struct ksmbd_file *ksmbd_lookup_fd_slow(struct ksmbd_work *work, u64 id, 133 void ksmbd_fd_put(struct ksmbd_work *work, struct ksmbd_file *fp); 138 struct ksmbd_file *ksmbd_open_fd(struct ksmbd_work *work, struct file *filp); 139 void ksmbd_close_tree_conn_fds(struct ksmbd_work *work); 140 void ksmbd_close_session_fds(struct ksmbd_work *work); 141 int ksmbd_close_inode_fds(struct ksmbd_work *work, struct inode *inode);
|
D | ksmbd_work.h | 23 struct ksmbd_work { struct 93 static inline void *ksmbd_resp_buf_next(struct ksmbd_work *work) in ksmbd_resp_buf_next() argument 102 static inline void *ksmbd_req_buf_next(struct ksmbd_work *work) in ksmbd_req_buf_next() 107 struct ksmbd_work *ksmbd_alloc_work_struct(void); 108 void ksmbd_free_work_struct(struct ksmbd_work *work); 115 bool ksmbd_queue_work(struct ksmbd_work *work);
|
D | ksmbd_work.c | 19 struct ksmbd_work *ksmbd_alloc_work_struct(void) in ksmbd_alloc_work_struct() 21 struct ksmbd_work *work = kmem_cache_zalloc(work_cache, GFP_KERNEL); in ksmbd_alloc_work_struct() 34 void ksmbd_free_work_struct(struct ksmbd_work *work) in ksmbd_free_work_struct() 55 sizeof(struct ksmbd_work), 0, in ksmbd_work_pool_init() 76 bool ksmbd_queue_work(struct ksmbd_work *work) in ksmbd_queue_work()
|
D | oplock.h | 62 struct ksmbd_work *work; 95 int smb_grant_oplock(struct ksmbd_work *work, int req_op_level, 98 void smb_break_all_levII_oplock(struct ksmbd_work *work, 105 void smb_break_all_oplock(struct ksmbd_work *work, struct ksmbd_file *fp);
|
D | vfs_cache.c | 359 static void __put_fd_final(struct ksmbd_work *work, struct ksmbd_file *fp) in __put_fd_final() 367 struct ksmbd_work *cancel_work, *ctmp; in set_close_state_blocked_works() 379 int ksmbd_close_fd(struct ksmbd_work *work, u64 id) in ksmbd_close_fd() 405 void ksmbd_fd_put(struct ksmbd_work *work, struct ksmbd_file *fp) in ksmbd_fd_put() 424 struct ksmbd_file *ksmbd_lookup_foreign_fd(struct ksmbd_work *work, u64 id) in ksmbd_lookup_foreign_fd() 429 struct ksmbd_file *ksmbd_lookup_fd_fast(struct ksmbd_work *work, u64 id) in ksmbd_lookup_fd_fast() 440 struct ksmbd_file *ksmbd_lookup_fd_slow(struct ksmbd_work *work, u64 id, in ksmbd_lookup_fd_slow() 554 struct ksmbd_file *ksmbd_open_fd(struct ksmbd_work *work, struct file *filp) in ksmbd_open_fd() 633 void ksmbd_close_tree_conn_fds(struct ksmbd_work *work) in ksmbd_close_tree_conn_fds() 642 void ksmbd_close_session_fds(struct ksmbd_work *work) in ksmbd_close_session_fds()
|
D | smb_common.c | 135 int ksmbd_verify_smb_message(struct ksmbd_work *work) in ksmbd_verify_smb_message() 286 int ksmbd_init_smb_server(struct ksmbd_work *work) in ksmbd_init_smb_server() 300 int ksmbd_populate_dot_dotdot_entries(struct ksmbd_work *work, int info_level, in ksmbd_populate_dot_dotdot_entries() 441 static int smb_handle_negotiate(struct ksmbd_work *work) in smb_handle_negotiate() 450 int ksmbd_smb_negotiate_common(struct ksmbd_work *work, unsigned int command) in ksmbd_smb_negotiate_common() 610 int ksmbd_override_fsids(struct ksmbd_work *work) in ksmbd_override_fsids() 653 void ksmbd_revert_fsids(struct ksmbd_work *work) in ksmbd_revert_fsids()
|
D | server.c | 92 static inline int check_conn_state(struct ksmbd_work *work) in check_conn_state() 107 static int __process_request(struct ksmbd_work *work, struct ksmbd_conn *conn, in __process_request() 160 static void __handle_ksmbd_work(struct ksmbd_work *work, in __handle_ksmbd_work() 253 struct ksmbd_work *work = container_of(wk, struct ksmbd_work, work); in handle_ksmbd_work() 280 struct ksmbd_work *work; in queue_ksmbd_work()
|
D | auth.h | 36 struct ksmbd_work; 39 int ksmbd_crypt_message(struct ksmbd_work *work, struct kvec *iov,
|
D | smb2pdu.c | 41 static void __wbuf(struct ksmbd_work *work, void **req, void **rsp) in __wbuf() 94 int smb2_get_ksmbd_tcon(struct ksmbd_work *work) in smb2_get_ksmbd_tcon() 127 void smb2_set_err_rsp(struct ksmbd_work *work) in smb2_set_err_rsp() 152 bool is_smb2_neg_cmd(struct ksmbd_work *work) in is_smb2_neg_cmd() 176 bool is_smb2_rsp(struct ksmbd_work *work) in is_smb2_rsp() 197 u16 get_smb2_cmd_val(struct ksmbd_work *work) in get_smb2_cmd_val() 213 void set_smb2_rsp_status(struct ksmbd_work *work, __le32 err) in set_smb2_rsp_status() 232 int init_smb2_neg_rsp(struct ksmbd_work *work) in init_smb2_neg_rsp() 298 int smb2_set_rsp_credits(struct ksmbd_work *work) in smb2_set_rsp_credits() 364 static void init_chained_smb2_rsp(struct ksmbd_work *work) in init_chained_smb2_rsp() [all …]
|
D | vfs.c | 52 static void ksmbd_vfs_inherit_owner(struct ksmbd_work *work, in ksmbd_vfs_inherit_owner() 163 int ksmbd_vfs_create(struct ksmbd_work *work, const char *name, umode_t mode) in ksmbd_vfs_create() 200 int ksmbd_vfs_mkdir(struct ksmbd_work *work, const char *name, umode_t mode) in ksmbd_vfs_mkdir() 364 int ksmbd_vfs_read(struct ksmbd_work *work, struct ksmbd_file *fp, size_t count, in ksmbd_vfs_read() 479 int ksmbd_vfs_write(struct ksmbd_work *work, struct ksmbd_file *fp, in ksmbd_vfs_write() 561 int ksmbd_vfs_fsync(struct ksmbd_work *work, u64 fid, u64 p_id) in ksmbd_vfs_fsync() 584 int ksmbd_vfs_remove_file(struct ksmbd_work *work, char *name) in ksmbd_vfs_remove_file() 643 int ksmbd_vfs_link(struct ksmbd_work *work, const char *oldname, in ksmbd_vfs_link() 713 static int __ksmbd_vfs_rename(struct ksmbd_work *work, in __ksmbd_vfs_rename() 772 int ksmbd_vfs_fp_rename(struct ksmbd_work *work, struct ksmbd_file *fp, in ksmbd_vfs_fp_rename() [all …]
|
D | oplock.c | 30 static struct oplock_info *alloc_opinfo(struct ksmbd_work *work, in alloc_opinfo() 590 static inline int allocate_oplock_break_buf(struct ksmbd_work *work) in allocate_oplock_break_buf() 612 struct ksmbd_work *work = container_of(wk, struct ksmbd_work, work); in __smb2_oplock_break_noti() 690 struct ksmbd_work *work = ksmbd_alloc_work_struct(); in smb2_oplock_break_noti() 731 struct ksmbd_work *work = container_of(wk, struct ksmbd_work, work); in __smb2_lease_break_noti() 799 struct ksmbd_work *work; in smb2_lease_break_noti() 828 struct ksmbd_work *in_work; in smb2_lease_break_noti() 830 in_work = list_entry(tmp, struct ksmbd_work, in smb2_lease_break_noti() 1093 int smb_grant_oplock(struct ksmbd_work *work, int req_op_level, u64 pid, in smb_grant_oplock() 1221 static void smb_break_all_write_oplock(struct ksmbd_work *work, in smb_break_all_write_oplock() [all …]
|
D | connection.c | 110 void ksmbd_conn_enqueue_request(struct ksmbd_work *work) in ksmbd_conn_enqueue_request() 128 int ksmbd_conn_try_dequeue_request(struct ksmbd_work *work) in ksmbd_conn_try_dequeue_request() 167 int ksmbd_conn_write(struct ksmbd_work *work) in ksmbd_conn_write()
|
D | Makefile | 8 misc.o oplock.o connection.o ksmbd_work.o crypto_ctx.o \
|
D | smb2misc.c | 351 int ksmbd_smb2_check_message(struct ksmbd_work *work) in ksmbd_smb2_check_message() 446 int smb2_negotiate_request(struct ksmbd_work *work) in smb2_negotiate_request()
|
D | auth.c | 991 static int ksmbd_get_encryption_key(struct ksmbd_work *work, __u64 ses_id, in ksmbd_get_encryption_key() 1088 int ksmbd_crypt_message(struct ksmbd_work *work, struct kvec *iov, in ksmbd_crypt_message()
|