/Linux-v5.15/fs/ksmbd/ |
D | vfs.h | 74 struct ksmbd_work; 115 int ksmbd_vfs_create(struct ksmbd_work *work, const char *name, umode_t mode); 116 int ksmbd_vfs_mkdir(struct ksmbd_work *work, const char *name, umode_t mode); 117 int ksmbd_vfs_read(struct ksmbd_work *work, struct ksmbd_file *fp, 119 int ksmbd_vfs_write(struct ksmbd_work *work, struct ksmbd_file *fp, 122 int ksmbd_vfs_fsync(struct ksmbd_work *work, u64 fid, u64 p_id); 123 int ksmbd_vfs_remove_file(struct ksmbd_work *work, char *name); 124 int ksmbd_vfs_link(struct ksmbd_work *work, 127 int ksmbd_vfs_fp_rename(struct ksmbd_work *work, struct ksmbd_file *fp, 129 int ksmbd_vfs_truncate(struct ksmbd_work *work, [all …]
|
D | connection.h | 154 int ksmbd_conn_write(struct ksmbd_work *work); 161 void ksmbd_conn_enqueue_request(struct ksmbd_work *work); 162 int ksmbd_conn_try_dequeue_request(struct ksmbd_work *work); 174 static inline bool ksmbd_conn_good(struct ksmbd_work *work) in ksmbd_conn_good() 179 static inline bool ksmbd_conn_need_negotiate(struct ksmbd_work *work) in ksmbd_conn_need_negotiate() 184 static inline bool ksmbd_conn_need_reconnect(struct ksmbd_work *work) in ksmbd_conn_need_reconnect() 189 static inline bool ksmbd_conn_exiting(struct ksmbd_work *work) in ksmbd_conn_exiting() 194 static inline void ksmbd_conn_set_good(struct ksmbd_work *work) in ksmbd_conn_set_good() 199 static inline void ksmbd_conn_set_need_negotiate(struct ksmbd_work *work) in ksmbd_conn_set_need_negotiate() 204 static inline void ksmbd_conn_set_need_reconnect(struct ksmbd_work *work) in ksmbd_conn_set_need_reconnect() [all …]
|
D | smb_common.h | 459 u16 (*get_cmd_val)(struct ksmbd_work *swork); 460 int (*init_rsp_hdr)(struct ksmbd_work *swork); 461 void (*set_rsp_status)(struct ksmbd_work *swork, __le32 err); 462 int (*allocate_rsp_buf)(struct ksmbd_work *work); 463 int (*set_rsp_credits)(struct ksmbd_work *work); 464 int (*check_user_session)(struct ksmbd_work *work); 465 int (*get_ksmbd_tcon)(struct ksmbd_work *work); 466 bool (*is_sign_req)(struct ksmbd_work *work, unsigned int command); 467 int (*check_sign_req)(struct ksmbd_work *work); 468 void (*set_sign_rsp)(struct ksmbd_work *work); [all …]
|
D | vfs_cache.h | 139 int ksmbd_close_fd(struct ksmbd_work *work, u64 id); 140 struct ksmbd_file *ksmbd_lookup_fd_fast(struct ksmbd_work *work, u64 id); 141 struct ksmbd_file *ksmbd_lookup_foreign_fd(struct ksmbd_work *work, u64 id); 142 struct ksmbd_file *ksmbd_lookup_fd_slow(struct ksmbd_work *work, u64 id, 144 void ksmbd_fd_put(struct ksmbd_work *work, struct ksmbd_file *fp); 149 struct ksmbd_file *ksmbd_open_fd(struct ksmbd_work *work, struct file *filp); 150 void ksmbd_close_tree_conn_fds(struct ksmbd_work *work); 151 void ksmbd_close_session_fds(struct ksmbd_work *work); 152 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 | smb2pdu.h | 1651 bool is_smb2_neg_cmd(struct ksmbd_work *work); 1652 bool is_smb2_rsp(struct ksmbd_work *work); 1654 u16 get_smb2_cmd_val(struct ksmbd_work *work); 1655 void set_smb2_rsp_status(struct ksmbd_work *work, __le32 err); 1656 int init_smb2_rsp_hdr(struct ksmbd_work *work); 1657 int smb2_allocate_rsp_buf(struct ksmbd_work *work); 1658 bool is_chained_smb2_message(struct ksmbd_work *work); 1659 int init_smb2_neg_rsp(struct ksmbd_work *work); 1660 void smb2_set_err_rsp(struct ksmbd_work *work); 1661 int smb2_check_user_session(struct ksmbd_work *work); [all …]
|
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() 77 bool ksmbd_queue_work(struct ksmbd_work *work) in ksmbd_queue_work()
|
D | oplock.h | 64 struct ksmbd_work *work; 97 int smb_grant_oplock(struct ksmbd_work *work, int req_op_level, 100 void smb_break_all_levII_oplock(struct ksmbd_work *work, 107 void smb_break_all_oplock(struct ksmbd_work *work, struct ksmbd_file *fp);
|
D | vfs_cache.c | 360 static void __put_fd_final(struct ksmbd_work *work, struct ksmbd_file *fp) in __put_fd_final() 368 struct ksmbd_work *cancel_work, *ctmp; in set_close_state_blocked_works() 380 int ksmbd_close_fd(struct ksmbd_work *work, u64 id) in ksmbd_close_fd() 406 void ksmbd_fd_put(struct ksmbd_work *work, struct ksmbd_file *fp) in ksmbd_fd_put() 425 struct ksmbd_file *ksmbd_lookup_foreign_fd(struct ksmbd_work *work, u64 id) in ksmbd_lookup_foreign_fd() 430 struct ksmbd_file *ksmbd_lookup_fd_fast(struct ksmbd_work *work, u64 id) in ksmbd_lookup_fd_fast() 441 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 | 133 int ksmbd_verify_smb_message(struct ksmbd_work *work) in ksmbd_verify_smb_message() 282 int ksmbd_init_smb_server(struct ksmbd_work *work) in ksmbd_init_smb_server() 296 int ksmbd_populate_dot_dotdot_entries(struct ksmbd_work *work, int info_level, in ksmbd_populate_dot_dotdot_entries() 434 static int smb_handle_negotiate(struct ksmbd_work *work) in smb_handle_negotiate() 443 int ksmbd_smb_negotiate_common(struct ksmbd_work *work, unsigned int command) in ksmbd_smb_negotiate_common() 602 int ksmbd_override_fsids(struct ksmbd_work *work) in ksmbd_override_fsids() 645 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() 255 struct ksmbd_work *work = container_of(wk, struct ksmbd_work, work); in handle_ksmbd_work() 276 struct ksmbd_work *work; in queue_ksmbd_work()
|
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() 126 void smb2_set_err_rsp(struct ksmbd_work *work) in smb2_set_err_rsp() 151 bool is_smb2_neg_cmd(struct ksmbd_work *work) in is_smb2_neg_cmd() 175 bool is_smb2_rsp(struct ksmbd_work *work) in is_smb2_rsp() 196 u16 get_smb2_cmd_val(struct ksmbd_work *work) in get_smb2_cmd_val() 212 void set_smb2_rsp_status(struct ksmbd_work *work, __le32 err) in set_smb2_rsp_status() 231 int init_smb2_neg_rsp(struct ksmbd_work *work) in init_smb2_neg_rsp() 299 int smb2_set_rsp_credits(struct ksmbd_work *work) in smb2_set_rsp_credits() 360 static void init_chained_smb2_rsp(struct ksmbd_work *work) in init_chained_smb2_rsp() [all …]
|
D | vfs.c | 53 static void ksmbd_vfs_inherit_owner(struct ksmbd_work *work, in ksmbd_vfs_inherit_owner() 164 int ksmbd_vfs_create(struct ksmbd_work *work, const char *name, umode_t mode) in ksmbd_vfs_create() 201 int ksmbd_vfs_mkdir(struct ksmbd_work *work, const char *name, umode_t mode) in ksmbd_vfs_mkdir() 365 int ksmbd_vfs_read(struct ksmbd_work *work, struct ksmbd_file *fp, size_t count, in ksmbd_vfs_read() 482 int ksmbd_vfs_write(struct ksmbd_work *work, struct ksmbd_file *fp, in ksmbd_vfs_write() 566 int ksmbd_vfs_fsync(struct ksmbd_work *work, u64 fid, u64 p_id) in ksmbd_vfs_fsync() 589 int ksmbd_vfs_remove_file(struct ksmbd_work *work, char *name) in ksmbd_vfs_remove_file() 648 int ksmbd_vfs_link(struct ksmbd_work *work, const char *oldname, in ksmbd_vfs_link() 718 static int __ksmbd_vfs_rename(struct ksmbd_work *work, in __ksmbd_vfs_rename() 777 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() 589 static inline int allocate_oplock_break_buf(struct ksmbd_work *work) in allocate_oplock_break_buf() 611 struct ksmbd_work *work = container_of(wk, struct ksmbd_work, work); in __smb2_oplock_break_noti() 686 struct ksmbd_work *work = ksmbd_alloc_work_struct(); in smb2_oplock_break_noti() 727 struct ksmbd_work *work = container_of(wk, struct ksmbd_work, work); in __smb2_lease_break_noti() 789 struct ksmbd_work *work; in smb2_lease_break_noti() 818 struct ksmbd_work *in_work; in smb2_lease_break_noti() 820 in_work = list_entry(tmp, struct ksmbd_work, in smb2_lease_break_noti() 1083 int smb_grant_oplock(struct ksmbd_work *work, int req_op_level, u64 pid, in smb_grant_oplock() 1211 static void smb_break_all_write_oplock(struct ksmbd_work *work, in smb_break_all_write_oplock() [all …]
|
D | connection.c | 101 void ksmbd_conn_enqueue_request(struct ksmbd_work *work) in ksmbd_conn_enqueue_request() 119 int ksmbd_conn_try_dequeue_request(struct ksmbd_work *work) in ksmbd_conn_try_dequeue_request() 158 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 | 348 int ksmbd_smb2_check_message(struct ksmbd_work *work) in ksmbd_smb2_check_message() 450 int smb2_negotiate_request(struct ksmbd_work *work) in smb2_negotiate_request()
|