Searched refs:sr (Results 1 - 25 of 181) sorted by relevance

12345678

/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_process_exit.c59 smb_pre_process_exit(smb_request_t *sr) argument
61 DTRACE_SMB_START(op__ProcessExit, smb_request_t *, sr);
66 smb_post_process_exit(smb_request_t *sr) argument
68 DTRACE_SMB_DONE(op__ProcessExit, smb_request_t *, sr);
72 smb_com_process_exit(smb_request_t *sr) argument
76 sr->uid_user = smb_session_lookup_uid(sr->session, sr->smb_uid);
77 if (sr->uid_user == NULL) {
78 rc = smbsr_encode_empty_result(sr);
[all...]
H A Dsmb_logoff_andx.c66 smb_pre_logoff_andx(smb_request_t *sr) argument
68 DTRACE_SMB_START(op__LogoffX, smb_request_t *, sr);
73 smb_post_logoff_andx(smb_request_t *sr) argument
75 DTRACE_SMB_DONE(op__LogoffX, smb_request_t *, sr);
79 smb_com_logoff_andx(smb_request_t *sr) argument
81 if (sr->uid_user == NULL) {
82 smbsr_error(sr, 0, ERRSRV, ERRbaduid);
86 smb_user_logoff(sr->uid_user);
88 if (smbsr_encode_result(sr, 2, 0, "bb.ww", 2, sr
[all...]
H A Dsmb2_dispatch.c22 #define SMB2_ASYNCID(sr) (sr->smb2_messageid ^ (1ULL << 62))
103 smb2_invalid_cmd(smb_request_t *sr) argument
107 sr->session->ip_addr_str);
109 sr->smb2_status = NT_STATUS_INVALID_PARAMETER;
128 smb2sr_newrq(smb_request_t *sr) argument
130 struct mbuf_chain *mbc = &sr->command;
139 if (smb3_decrypt_msg(sr) != 0)
157 if (smb2_decode_header(sr) != 0)
167 if (sr
235 smb_request_t *sr; local
261 smb3_decrypt_msg(smb_request_t *sr) argument
324 smb2_credit_decrease(smb_request_t *sr) argument
368 smb2_credit_increase(smb_request_t *sr) argument
404 smb2_record_stats(smb_request_t *sr, smb_disp_stats_t *sds, boolean_t tx_only) argument
447 smb2sr_work(struct smb_request *sr) argument
1043 smb2sr_go_async(smb_request_t *sr) argument
1310 smb3_decode_tform_header(smb_request_t *sr) argument
1350 smb3_encode_tform_header(smb_request_t *sr, struct mbuf_chain *mbc) argument
1368 smb2_decode_header(smb_request_t *sr) argument
1410 smb2_encode_header(smb_request_t *sr, boolean_t overwrite) argument
1457 smb2_send_reply(smb_request_t *sr) argument
1525 smbsr_status_smb2(smb_request_t *sr, DWORD status) argument
1541 smb2sr_put_errno(struct smb_request *sr, int errnum) argument
1548 smb2sr_put_error(smb_request_t *sr, uint32_t status) argument
1557 smb2sr_put_error_data(smb_request_t *sr, uint32_t status, mbuf_chain_t *mbc) argument
1600 smb2sr_lookup_fid(smb_request_t *sr, smb2fid_t *fid) argument
[all...]
H A Dsmb_close.c42 smb_pre_close(smb_request_t *sr) argument
46 rc = smbsr_decode_vwv(sr, "wl", &sr->smb_fid, &sr->arg.timestamp);
48 DTRACE_SMB_START(op__Close, smb_request_t *, sr);
53 smb_post_close(smb_request_t *sr) argument
55 DTRACE_SMB_DONE(op__Close, smb_request_t *, sr);
59 smb_com_close(smb_request_t *sr) argument
63 smbsr_lookup_file(sr);
64 if (sr
83 smb_pre_close_and_tree_disconnect(smb_request_t *sr) argument
94 smb_post_close_and_tree_disconnect(smb_request_t *sr) argument
100 smb_com_close_and_tree_disconnect(smb_request_t *sr) argument
[all...]
H A Dsmb_echo.c40 smb_pre_echo(smb_request_t *sr) argument
42 DTRACE_SMB_START(op__Echo, smb_request_t *, sr);
47 smb_post_echo(smb_request_t *sr) argument
49 DTRACE_SMB_DONE(op__Echo, smb_request_t *, sr);
55 smb_com_echo(struct smb_request *sr) argument
64 pid_hi = sr->smb_pid >> 16;
65 pid_lo = (uint16_t)sr->smb_pid;
67 if (smbsr_decode_vwv(sr, "w", &necho) != 0)
77 nbytes = sr->smb_bcc;
78 data = smb_srm_zalloc(sr, nbyte
[all...]
H A Dsmb_seek.c83 smb_pre_seek(smb_request_t *sr) argument
85 DTRACE_SMB_START(op__Seek, smb_request_t *, sr);
90 smb_post_seek(smb_request_t *sr) argument
92 DTRACE_SMB_DONE(op__Seek, smb_request_t *, sr);
96 smb_com_seek(smb_request_t *sr) argument
103 if (smbsr_decode_vwv(sr, "wwl", &sr->smb_fid, &mode, &off) != 0)
106 smbsr_lookup_file(sr);
107 if (sr->fid_ofile == NULL) {
108 smbsr_error(sr, NT_STATUS_INVALID_HANDL
[all...]
H A Dsmb2_cancel.c35 smb2_newrq_cancel(smb_request_t *sr) argument
42 if (sr->smb2_next_command != 0)
45 DTRACE_SMB2_START(op__Cancel, smb_request_t *, sr);
47 if (sr->smb2_hdr_flags & SMB2_FLAGS_ASYNC_COMMAND)
48 smb2_cancel_async(sr);
50 smb2_cancel_sync(sr);
52 DTRACE_SMB2_DONE(op__Cancel, smb_request_t *, sr);
62 smb2_cancel(smb_request_t *sr) argument
69 if (sr->smb2_cmd_hdr != 0 || sr
93 smb2_cancel_sync(smb_request_t *sr) argument
145 smb2_cancel_async(smb_request_t *sr) argument
[all...]
H A Dsmb_lock_byte_range.c65 smb_pre_lock_byte_range(smb_request_t *sr) argument
67 DTRACE_SMB_START(op__LockByteRange, smb_request_t *, sr);
72 smb_post_lock_byte_range(smb_request_t *sr) argument
74 DTRACE_SMB_DONE(op__LockByteRange, smb_request_t *, sr);
81 smb_com_lock_byte_range(struct smb_request *sr) argument
89 if (smbsr_decode_vwv(sr, "wll", &sr->smb_fid, &count, &off) != 0)
92 smbsr_lookup_file(sr);
93 if (sr->fid_ofile == NULL) {
94 smbsr_error(sr, NT_STATUS_INVALID_HANDL
[all...]
H A Dsmb_unlock_byte_range.c58 smb_pre_unlock_byte_range(smb_request_t *sr) argument
60 DTRACE_SMB_START(op__UnlockByteRange, smb_request_t *, sr);
65 smb_post_unlock_byte_range(smb_request_t *sr) argument
67 DTRACE_SMB_DONE(op__UnlockByteRange, smb_request_t *, sr);
71 smb_com_unlock_byte_range(smb_request_t *sr) argument
78 if (smbsr_decode_vwv(sr, "wll", &sr->smb_fid, &Length, &Offset) != 0)
81 smbsr_lookup_file(sr);
82 if (sr->fid_ofile == NULL) {
83 smbsr_error(sr, NT_STATUS_INVALID_HANDL
[all...]
H A Dsmb_rename.c62 smb_pre_rename(smb_request_t *sr) argument
64 smb_fqi_t *src_fqi = &sr->arg.dirop.fqi;
65 smb_fqi_t *dst_fqi = &sr->arg.dirop.dst_fqi;
68 if ((rc = smbsr_decode_vwv(sr, "w", &src_fqi->fq_sattr)) == 0) {
69 rc = smbsr_decode_data(sr, "%SS", sr, &src_fqi->fq_path.pn_path,
75 DTRACE_SMB_START(op__Rename, smb_request_t *, sr); /* arg.dirop */
81 smb_post_rename(smb_request_t *sr) argument
83 DTRACE_SMB_DONE(op__Rename, smb_request_t *, sr);
87 smb_com_rename(smb_request_t *sr) argument
132 smb_pre_nt_rename(smb_request_t *sr) argument
154 smb_post_nt_rename(smb_request_t *sr) argument
160 smb_com_nt_rename(smb_request_t *sr) argument
219 smb_nt_transact_rename(smb_request_t *sr, smb_xa_t *xa) argument
[all...]
H A Dsmb2_tree_disconn.c23 smb2_tree_disconn(smb_request_t *sr) argument
33 &sr->smb_data, "ww",
43 DTRACE_SMB2_START(op__TreeDisconnect, smb_request_t *, sr);
45 smb_tree_disconnect(sr->tid_tree, B_TRUE);
46 smb_session_cancel_requests(sr->session, sr->tid_tree, sr);
48 DTRACE_SMB2_DONE(op__TreeDisconnect, smb_request_t *, sr);
54 &sr->reply, "wwl",
H A Dsmb_create.c36 smb_pre_create(smb_request_t *sr) argument
38 struct open_param *op = &sr->arg.open;
41 bzero(op, sizeof (sr->arg.open));
43 rc = smbsr_decode_vwv(sr, "wl", &op->dattr, &op->mtime.tv_sec);
45 rc = smbsr_decode_data(sr, "%S", sr, &op->fqi.fq_path.pn_path);
50 DTRACE_SMB_START(op__Create, smb_request_t *, sr); /* arg.open */
56 smb_post_create(smb_request_t *sr) argument
58 DTRACE_SMB_DONE(op__Create, smb_request_t *, sr);
62 smb_com_create(smb_request_t *sr) argument
78 smb_pre_create_new(smb_request_t *sr) argument
97 smb_post_create_new(smb_request_t *sr) argument
103 smb_com_create_new(smb_request_t *sr) argument
119 smb_pre_create_temporary(smb_request_t *sr) argument
139 smb_post_create_temporary(smb_request_t *sr) argument
145 smb_com_create_temporary(smb_request_t *sr) argument
177 smb_common_create(smb_request_t *sr) argument
[all...]
H A Dsmb2_change_notify.c37 smb2_change_notify(smb_request_t *sr) argument
52 &sr->smb_data, "wwlqqll",
63 status = smb2sr_lookup_fid(sr, &smb2fid);
64 DTRACE_SMB2_START(op__ChangeNotify, smb_request_t *, sr);
74 if (sr->smb2_next_command != 0) {
92 status = smb_notify_act1(sr, oBufLength, CompletionFilter);
94 status = smb2sr_go_async(sr);
97 status = smb_notify_act2(sr);
105 sr->smb2_status = status;
106 DTRACE_SMB2_DONE(op__ChangeNotify, smb_request_t *, sr);
131 smb_request_t *sr = arg; local
[all...]
H A Dsmb_nt_transact_notify_change.c74 smb_nt_transact_notify_change(smb_request_t *sr, struct smb_xa *xa) argument
83 &CompletionFilter, &sr->smb_fid, &WatchTree) != 0) {
84 smbsr_error(sr, NT_STATUS_INVALID_PARAMETER, 0, 0);
88 smbsr_lookup_file(sr);
89 if (sr->fid_ofile == NULL) {
90 smbsr_error(sr, NT_STATUS_INVALID_PARAMETER, 0, 0);
104 status = smb_notify_act1(sr, oBufSize, CompletionFilter);
106 status = smb_notify_act2(sr);
120 MBC_FLUSH(&sr->raw_data);
124 smbsr_status(sr, statu
150 smb_request_t *sr = arg; local
[all...]
H A Dsmb_print.c56 smb_pre_open_print_file(smb_request_t *sr) argument
58 struct open_param *op = &sr->arg.open;
67 bzero(op, sizeof (sr->arg.open));
68 rc = smbsr_decode_vwv(sr, "ww", &setup, &mode);
70 rc = smbsr_decode_data(sr, "%S", sr, &identifier);
73 path = smb_srm_zalloc(sr, MAXPATHLEN);
81 DTRACE_SMB_START(op__OpenPrintFile, smb_request_t *, sr); /* arg.open */
87 smb_post_open_print_file(smb_request_t *sr) argument
89 DTRACE_SMB_DONE(op__OpenPrintFile, smb_request_t *, sr);
104 smb_com_open_print_file(smb_request_t *sr) argument
154 smb_pre_close_print_file(smb_request_t *sr) argument
165 smb_post_close_print_file(smb_request_t *sr) argument
182 smb_com_close_print_file(smb_request_t *sr) argument
209 smb_pre_get_print_queue(smb_request_t *sr) argument
216 smb_post_get_print_queue(smb_request_t *sr) argument
222 smb_com_get_print_queue(smb_request_t *sr) argument
246 smb_pre_write_print_file(smb_request_t *sr) argument
262 smb_post_write_print_file(smb_request_t *sr) argument
270 smb_com_write_print_file(smb_request_t *sr) argument
[all...]
H A Dsmb2_logoff.c23 smb2_logoff(smb_request_t *sr) argument
33 &sr->smb_data, "ww",
41 if (sr->uid_user == NULL)
44 DTRACE_SMB2_START(op__Logoff, smb_request_t *, sr);
46 sr->uid_user->preserve_opens = SMB2_DH_PRESERVE_ALL;
47 smb_user_logoff(sr->uid_user);
49 DTRACE_SMB2_DONE(op__Logoff, smb_request_t *, sr);
55 &sr->reply, "wwl",
H A Dsmb_session_setup_andx.c36 smb_pre_session_setup_andx(smb_request_t *sr) argument
43 sinfo = smb_srm_zalloc(sr, sizeof (smb_arg_sessionsetup_t));
44 sr->sr_ssetup = sinfo;
51 if (sr->smb_wct < 10) {
60 rc = smbsr_decode_vwv(sr, "b.www6.",
61 &sr->andx_com, &sr->andx_off,
66 if (sr->session->dialect < NT_LM_0_12) {
71 rc = smbsr_decode_vwv(sr, "w4.",
76 sinfo->ssi_lmpwd = smb_srm_zalloc(sr, sinf
197 smb_post_session_setup_andx(smb_request_t *sr) argument
220 smb_com_session_setup_andx(smb_request_t *sr) argument
[all...]
H A Dsmb_directory.c55 smb_pre_create_directory(smb_request_t *sr) argument
59 rc = smbsr_decode_data(sr, "%S", sr,
60 &sr->arg.dirop.fqi.fq_path.pn_path);
62 DTRACE_SMB_START(op__CreateDirectory, smb_request_t *, sr);
68 smb_post_create_directory(smb_request_t *sr) argument
70 DTRACE_SMB_DONE(op__CreateDirectory, smb_request_t *, sr);
74 smb_com_create_directory(smb_request_t *sr) argument
77 smb_pathname_t *pn = &sr->arg.dirop.fqi.fq_path;
79 if (!STYPE_ISDSK(sr
110 smb_common_create_directory(smb_request_t *sr) argument
201 smb_pre_delete_directory(smb_request_t *sr) argument
214 smb_post_delete_directory(smb_request_t *sr) argument
220 smb_com_delete_directory(smb_request_t *sr) argument
351 smb_pre_check_directory(smb_request_t *sr) argument
364 smb_post_check_directory(smb_request_t *sr) argument
370 smb_com_check_directory(smb_request_t *sr) argument
[all...]
H A Dsmb_flush.c58 smb_pre_flush(smb_request_t *sr) argument
62 rc = smbsr_decode_vwv(sr, "w", &sr->smb_fid);
64 DTRACE_SMB_START(op__Flush, smb_request_t *, sr);
70 smb_post_flush(smb_request_t *sr) argument
72 DTRACE_SMB_DONE(op__Flush, smb_request_t *, sr);
76 smb_com_flush(smb_request_t *sr) argument
83 rc = smbsr_encode_empty_result(sr);
87 if (sr->smb_fid != 0xffff) {
88 smbsr_lookup_file(sr);
[all...]
H A Dsmb_tree_connect.c30 smb_tcon_puterror(smb_request_t *sr, uint32_t status) argument
37 smbsr_error(sr, 0, ERRSRV, ERRinvnetname);
41 smbsr_error(sr, status, ERRSRV, ERRaccess);
45 smbsr_error(sr, status, ERRDOS, ERROR_BAD_DEV_TYPE);
51 smbsr_error(sr, 0, ERRSRV, ERRsrverror);
89 smb_pre_tree_connect(smb_request_t *sr) argument
91 smb_arg_tcon_t *tcon = &sr->sr_tcon;
97 rc = smbsr_decode_data(sr, "%AAA", sr, &tcon->path,
103 DTRACE_SMB_START(op__TreeConnect, smb_request_t *, sr);
109 smb_post_tree_connect(smb_request_t *sr) argument
115 smb_com_tree_connect(smb_request_t *sr) argument
271 smb_pre_tree_connect_andx(smb_request_t *sr) argument
299 smb_post_tree_connect_andx(smb_request_t *sr) argument
305 smb_com_tree_connect_andx(smb_request_t *sr) argument
413 smb_pre_tree_disconnect(smb_request_t *sr) argument
423 smb_post_tree_disconnect(smb_request_t *sr) argument
440 smb_com_tree_disconnect(smb_request_t *sr) argument
[all...]
H A Dsmb_nt_transact_ioctl.c44 uint32_t (*ioctl_func)(smb_request_t *sr, smb_xa_t *xa);
85 smb_nt_transact_ioctl(smb_request_t *sr, smb_xa_t *xa) argument
94 &fcode, &sr->smb_fid, &is_fsctl, &is_flags) != 0) {
95 smbsr_error(sr, NT_STATUS_INVALID_PARAMETER, 0, 0);
106 status = ioctl_ret_tbl[i].ioctl_func(sr, xa);
112 smbsr_error(sr, status, 0, 0);
122 smb_nt_trans_ioctl_noop(smb_request_t *sr, smb_xa_t *xa) argument
129 smb_nt_trans_ioctl_invalid_parm(smb_request_t *sr, smb_xa_t *xa) argument
145 smb_nt_trans_ioctl_set_sparse(smb_request_t *sr, smb_xa_t *xa) argument
152 if (SMB_TREE_IS_READONLY(sr))
230 smb_nt_trans_ioctl_set_zero_data(smb_request_t *sr, smb_xa_t *xa) argument
267 smb_nt_trans_ioctl_query_alloc_ranges(smb_request_t *sr, smb_xa_t *xa) argument
331 smb_nt_trans_ioctl_enum_snaps(smb_request_t *sr, smb_xa_t *xa) argument
[all...]
H A Dsmb2_session_setup.c30 smb2_session_setup(smb_request_t *sr) argument
46 sinfo = smb_srm_zalloc(sr, sizeof (smb_arg_sessionsetup_t));
47 sr->sr_ssetup = sinfo;
50 &sr->smb_data, "wbbllwwq",
66 skip = (SecBufOffset + sr->smb2_cmd_hdr) -
67 sr->smb_data.chain_offset;
71 (void) smb_mbc_decodef(&sr->smb_data, "#.", skip);
77 sinfo->ssi_isecblob = smb_srm_zalloc(sr, sinfo->ssi_iseclen);
78 rc = smb_mbc_decodef(&sr->smb_data, "#c",
87 DTRACE_SMB2_START(op__SessionSetup, smb_request_t *, sr);
204 smb2_ss_adjust_credits(smb_request_t *sr) argument
[all...]
H A Dsmb2_query_info.c25 smb2_query_info(smb_request_t *sr) argument
37 qi = smb_srm_zalloc(sr, sizeof (*qi));
43 &sr->smb_data, "wbblw..lllqq",
62 rc = MBC_SHADOW_CHAIN(&qi->in_data, &sr->smb_data,
63 sr->smb2_cmd_hdr + iBufOffset, iBufLength);
71 sr->raw_data.max_bytes = oBufLength;
73 status = smb2sr_lookup_fid(sr, &smb2fid);
74 DTRACE_SMB2_START(op__QueryInfo, smb_request_t *, sr);
81 status = smb2_qinfo_file(sr, qi);
84 status = smb2_qinfo_fs(sr, q
[all...]
H A Dsmb_nt_cancel.c49 smb_pre_nt_cancel(smb_request_t *sr) argument
51 DTRACE_SMB_START(op__NtCancel, smb_request_t *, sr);
56 smb_post_nt_cancel(smb_request_t *sr) argument
58 DTRACE_SMB_DONE(op__NtCancel, smb_request_t *, sr);
69 smb_com_nt_cancel(smb_request_t *sr) argument
75 session = sr->session;
81 if ((req != sr) &&
82 (req->smb_uid == sr->smb_uid) &&
83 (req->smb_pid == sr->smb_pid) &&
84 (req->smb_tid == sr
107 smb1sr_newrq_cancel(smb_request_t *sr) argument
[all...]
/illumos-gate/usr/src/cmd/smbsrv/fksmbd/
H A DWatch-fksmb.d31 this->sr = (userland pid`smb_request_t *)arg1;
35 this->sr->smb_mid,
36 this->sr->smb_uid,
37 this->sr->smb_tid);
43 this->sr = (userland pid`smb_request_t *)arg1;
47 this->sr->smb_mid,
48 this->sr->smb_error.status);
54 this->sr = (userland pid`smb_request_t *)arg1;
58 this->sr->smb2_messageid,
59 this->sr
[all...]

Completed in 238 milliseconds

12345678