Lines Matching full:int
31 extern void free_rsp_buf(int, void *);
32 extern int smb_send(struct TCP_Server_Info *, struct smb_hdr *,
33 unsigned int /* length */);
34 extern unsigned int _get_xid(void);
35 extern void _free_xid(unsigned int);
38 unsigned int __xid = _get_xid(); \
50 __func__, curr_xid, (int)rc); \
52 trace_smb3_exit_err(curr_xid, __func__, (int)rc); \
56 extern int init_cifs_idmap(void);
58 extern int init_cifs_spnego(void);
62 const char *tree, int tree_len,
80 int add_treename);
86 extern int cifs_handle_standard(struct TCP_Server_Info *server,
90 extern int smb3_parse_devname(const char *devname, struct smb3_fs_context *ctx);
91 extern int smb3_parse_opt(const char *options, const char *key, char **val);
92 extern int cifs_ipaddr_cmp(struct sockaddr *srcaddr, struct sockaddr *rhs);
94 extern int cifs_discard_remaining_data(struct TCP_Server_Info *server);
95 extern int cifs_call_async(struct TCP_Server_Info *server,
98 mid_handle_t *handle, void *cbdata, const int flags,
101 extern int cifs_send_recv(const unsigned int xid, struct cifs_ses *ses,
103 struct smb_rqst *rqst, int *resp_buf_type,
104 const int flags, struct kvec *resp_iov);
105 extern int compound_send_recv(const unsigned int xid, struct cifs_ses *ses,
107 const int flags, const int num_rqst,
108 struct smb_rqst *rqst, int *resp_buf_type,
110 extern int SendReceive(const unsigned int /* xid */ , struct cifs_ses *,
113 int * /* bytes returned */ , const int);
114 extern int SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses,
115 char *in_buf, int flags);
121 extern int cifs_check_receive(struct mid_q_entry *mid,
123 extern int cifs_wait_mtu_credits(struct TCP_Server_Info *server,
126 extern int SendReceive2(const unsigned int /* xid */ , struct cifs_ses *,
127 struct kvec *, int /* nvec to send */,
128 int * /* type of buf returned */, const int flags,
130 extern int SendReceiveBlockingLock(const unsigned int xid,
134 int *bytes_returned);
142 extern int cifs_reconnect(struct TCP_Server_Info *server,
144 extern int checkSMB(char *buf, unsigned int len, struct TCP_Server_Info *srvr);
150 unsigned int bytes_written);
153 extern struct cifsFileInfo *find_writable_file(struct cifsInodeInfo *, int);
154 extern int cifs_get_writable_file(struct cifsInodeInfo *cifs_inode,
155 int flags,
157 extern int cifs_get_writable_path(struct cifs_tcon *tcon, const char *name,
158 int flags,
161 extern int cifs_get_readable_path(struct cifs_tcon *tcon, const char *name,
163 extern int cifs_get_hardlink_path(struct cifs_tcon *tcon, struct inode *inode,
165 extern unsigned int smbCalcSize(void *buf);
166 extern int decode_negTokenInit(unsigned char *security_blob, int length,
168 extern int cifs_convert_address(struct sockaddr *dst, const char *src, int len);
169 extern void cifs_set_port(struct sockaddr *addr, const unsigned short int port);
170 extern int map_smb_to_linux_error(char *buf, bool logErr);
171 extern int map_and_check_smb_error(struct mid_q_entry *mid, bool logErr);
173 const struct cifs_tcon *, int /* length of
175 extern int small_smb_init_no_tc(const int smb_cmd, const int wct,
180 extern int CIFS_SessSetup(const unsigned int xid, struct cifs_ses *ses,
186 int offset);
188 extern int cifs_get_writer(struct cifsInodeInfo *cinode);
191 extern int cifs_unlock_range(struct cifsFileInfo *cfile,
192 struct file_lock *flock, const unsigned int xid);
193 extern int cifs_push_mandatory_locks(struct cifsFileInfo *cfile);
199 extern int cifs_posix_open(const char *full_path, struct inode **inode,
200 struct super_block *sb, int mode,
201 unsigned int f_flags, __u32 *oplock, __u16 *netfid,
202 unsigned int xid);
209 extern int cifs_fattr_to_inode(struct inode *inode, struct cifs_fattr *fattr,
214 int cifs_get_inode_info(struct inode **inode, const char *full_path,
215 struct cifs_open_info_data *data, struct super_block *sb, int xid,
217 extern int smb311_posix_get_inode_info(struct inode **inode,
221 const unsigned int xid);
222 extern int cifs_get_inode_info_unix(struct inode **pinode,
224 struct super_block *sb, unsigned int xid);
225 extern int cifs_set_file_info(struct inode *inode, struct iattr *attrs,
226 unsigned int xid, const char *full_path, __u32 dosattr);
227 extern int cifs_rename_pending_delete(const char *full_path,
229 const unsigned int xid);
230 extern int sid_to_id(struct cifs_sb_info *cifs_sb, struct smb_sid *psid,
232 extern int cifs_acl_to_fattr(struct cifs_sb_info *cifs_sb,
236 extern int id_mode_to_cifs_acl(struct inode *inode, const char *path, __u64 *pnmode,
243 struct dentry *dentry, int type);
244 extern int cifs_set_acl(struct mnt_idmap *idmap,
245 struct dentry *dentry, struct posix_acl *acl, int type);
246 extern int set_cifs_acl(struct smb_ntsd *pntsd, __u32 len, struct inode *ino,
247 const char *path, int flag);
248 extern unsigned int setup_authusers_ACE(struct smb_ace *pace);
249 extern unsigned int setup_special_mode_ACE(struct smb_ace *pace,
252 extern unsigned int setup_special_user_owner_ACE(struct smb_ace *pace);
255 extern int cifs_read_from_socket(struct TCP_Server_Info *server, char *buf,
256 unsigned int to_read);
259 int cifs_read_iter_from_socket(struct TCP_Server_Info *server,
261 unsigned int to_read);
262 extern int cifs_setup_cifs_sb(struct cifs_sb_info *cifs_sb);
264 int cifs_mount_get_session(struct cifs_mount_ctx *mnt_ctx);
265 int cifs_is_path_remote(struct cifs_mount_ctx *mnt_ctx);
266 int cifs_mount_get_tcon(struct cifs_mount_ctx *mnt_ctx);
267 extern int cifs_match_super(struct super_block *, void *);
268 extern int cifs_mount(struct cifs_sb_info *cifs_sb, struct smb3_fs_context *ctx);
276 int rw_check);
307 int from_reconnect);
319 int cifs_tree_connect(const unsigned int xid, struct cifs_tcon *tcon);
321 extern int cifs_negotiate_protocol(const unsigned int xid,
324 extern int cifs_setup_session(const unsigned int xid, struct cifs_ses *ses,
327 extern int cifs_enable_signing(struct TCP_Server_Info *server, bool mnt_sign_required);
328 extern int CIFSSMBNegotiate(const unsigned int xid,
332 extern int CIFSTCon(const unsigned int xid, struct cifs_ses *ses,
336 extern int CIFSFindFirst(const unsigned int xid, struct cifs_tcon *tcon,
342 extern int CIFSFindNext(const unsigned int xid, struct cifs_tcon *tcon,
346 extern int CIFSFindClose(const unsigned int xid, struct cifs_tcon *tcon,
349 extern int CIFSSMBQFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
351 extern int CIFSSMBQPathInfo(const unsigned int xid, struct cifs_tcon *tcon,
353 int legacy /* whether to use old info level */,
354 const struct nls_table *nls_codepage, int remap);
355 extern int SMBQueryInformation(const unsigned int xid, struct cifs_tcon *tcon,
357 const struct nls_table *nls_codepage, int remap);
359 extern int CIFSSMBUnixQFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
361 extern int CIFSSMBUnixQPathInfo(const unsigned int xid,
365 const struct nls_table *nls_codepage, int remap);
367 extern int CIFSGetDFSRefer(const unsigned int xid, struct cifs_ses *ses,
370 unsigned int *num_of_nodes,
371 const struct nls_table *nls_codepage, int remap);
373 extern int parse_dfs_referrals(struct get_dfs_referral_rsp *rsp, u32 rsp_size,
374 unsigned int *num_of_nodes,
376 const struct nls_table *nls_codepage, int remap,
378 extern void reset_cifs_unix_caps(unsigned int xid, struct cifs_tcon *tcon,
381 extern int CIFSSMBQFSInfo(const unsigned int xid, struct cifs_tcon *tcon,
383 extern int SMBOldQFSInfo(const unsigned int xid, struct cifs_tcon *tcon,
385 extern int CIFSSMBSetFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon,
388 extern int CIFSSMBQFSAttributeInfo(const unsigned int xid,
390 extern int CIFSSMBQFSDeviceInfo(const unsigned int xid, struct cifs_tcon *tcon);
391 extern int CIFSSMBQFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon);
392 extern int CIFSSMBQFSPosixInfo(const unsigned int xid, struct cifs_tcon *tcon,
395 extern int CIFSSMBSetPathInfo(const unsigned int xid, struct cifs_tcon *tcon,
399 extern int CIFSSMBSetFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
402 extern int CIFSSMBSetFileDisposition(const unsigned int xid,
406 extern int CIFSSMBSetEOF(const unsigned int xid, struct cifs_tcon *tcon,
410 extern int CIFSSMBSetFileSize(const unsigned int xid, struct cifs_tcon *tcon,
424 extern int CIFSSMBUnixSetFileInfo(const unsigned int xid,
429 extern int CIFSSMBUnixSetPathInfo(const unsigned int xid,
433 int remap);
435 extern int CIFSSMBMkDir(const unsigned int xid, struct inode *inode,
438 extern int CIFSSMBRmDir(const unsigned int xid, struct cifs_tcon *tcon,
440 extern int CIFSPOSIXDelFile(const unsigned int xid, struct cifs_tcon *tcon,
443 int remap_special_chars);
444 extern int CIFSSMBDelFile(const unsigned int xid, struct cifs_tcon *tcon,
447 int CIFSSMBRename(const unsigned int xid, struct cifs_tcon *tcon,
451 extern int CIFSSMBRenameOpenFile(const unsigned int xid, struct cifs_tcon *tcon,
452 int netfid, const char *target_name,
454 int remap_special_chars);
455 int CIFSCreateHardLink(const unsigned int xid,
460 extern int CIFSUnixCreateHardLink(const unsigned int xid,
464 int remap_special_chars);
465 extern int CIFSUnixCreateSymLink(const unsigned int xid,
468 const struct nls_table *nls_codepage, int remap);
469 extern int CIFSSMBUnixQuerySymLink(const unsigned int xid,
472 const struct nls_table *nls_codepage, int remap);
473 extern int cifs_query_reparse_point(const unsigned int xid,
478 int *rsp_buftype);
479 extern int CIFSSMB_set_compression(const unsigned int xid,
481 extern int CIFS_open(const unsigned int xid, struct cifs_open_parms *oparms,
482 int *oplock, FILE_ALL_INFO *buf);
483 extern int SMBLegacyOpen(const unsigned int xid, struct cifs_tcon *tcon,
484 const char *fileName, const int disposition,
485 const int access_flags, const int omode,
486 __u16 *netfid, int *pOplock, FILE_ALL_INFO *,
487 const struct nls_table *nls_codepage, int remap);
488 extern int CIFSPOSIXCreate(const unsigned int xid, struct cifs_tcon *tcon,
492 const struct nls_table *nls_codepage, int remap);
493 extern int CIFSSMBClose(const unsigned int xid, struct cifs_tcon *tcon,
494 const int smb_file_id);
496 extern int CIFSSMBFlush(const unsigned int xid, struct cifs_tcon *tcon,
497 const int smb_file_id);
499 extern int CIFSSMBRead(const unsigned int xid, struct cifs_io_parms *io_parms,
500 unsigned int *nbytes, char **buf,
501 int *return_buf_type);
502 extern int CIFSSMBWrite(const unsigned int xid, struct cifs_io_parms *io_parms,
503 unsigned int *nbytes, const char *buf);
504 extern int CIFSSMBWrite2(const unsigned int xid, struct cifs_io_parms *io_parms,
505 unsigned int *nbytes, struct kvec *iov, const int nvec);
506 extern int CIFSGetSrvInodeNumber(const unsigned int xid, struct cifs_tcon *tcon,
509 int remap);
511 extern int cifs_lockv(const unsigned int xid, struct cifs_tcon *tcon,
515 extern int CIFSSMBLock(const unsigned int xid, struct cifs_tcon *tcon,
520 extern int CIFSSMBPosixLock(const unsigned int xid, struct cifs_tcon *tcon,
525 extern int CIFSSMBTDis(const unsigned int xid, struct cifs_tcon *tcon);
526 extern int CIFSSMBEcho(struct TCP_Server_Info *server);
527 extern int CIFSSMBLogoff(const unsigned int xid, struct cifs_ses *ses);
535 extern int cifs_sign_rqst(struct smb_rqst *rqst, struct TCP_Server_Info *server,
537 extern int cifs_sign_smbv(struct kvec *iov, int n_vec, struct TCP_Server_Info *,
539 extern int cifs_sign_smb(struct smb_hdr *, struct TCP_Server_Info *, __u32 *);
540 extern int cifs_verify_signature(struct smb_rqst *rqst,
543 extern int setup_ntlmv2_rsp(struct cifs_ses *, const struct nls_table *);
545 extern int calc_seckey(struct cifs_ses *);
546 extern int generate_smb30signingkey(struct cifs_ses *ses,
548 extern int generate_smb311signingkey(struct cifs_ses *ses,
552 extern ssize_t CIFSSMBQAllEAs(const unsigned int xid, struct cifs_tcon *tcon,
556 extern int CIFSSMBSetEA(const unsigned int xid, struct cifs_tcon *tcon,
561 extern int CIFSSMBGetCIFSACL(const unsigned int xid, struct cifs_tcon *tcon,
563 extern int CIFSSMBSetCIFSACL(const unsigned int, struct cifs_tcon *, __u16,
564 struct smb_ntsd *pntsd, __u32 len, int aclflag);
565 extern int cifs_do_get_acl(const unsigned int xid, struct cifs_tcon *tcon,
567 struct posix_acl **acl, const int acl_type,
568 const struct nls_table *nls_codepage, int remap);
569 extern int cifs_do_set_acl(const unsigned int xid, struct cifs_tcon *tcon,
571 const struct posix_acl *acl, const int acl_type,
572 const struct nls_table *nls_codepage, int remap);
573 extern int CIFSGetExtAttr(const unsigned int xid, struct cifs_tcon *tcon,
574 const int netfid, __u64 *pExtAttrBits, __u64 *pMask);
578 extern int check_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
582 extern int E_md4hash(const unsigned char *passwd, unsigned char *p16,
593 int cifs_async_readv(struct cifs_io_subrequest *rdata);
594 int cifs_readv_receive(struct TCP_Server_Info *server, struct mid_q_entry *mid);
598 int cifs_query_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
601 unsigned int *pbytes_read);
602 int cifs_create_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
605 unsigned int *pbytes_written);
606 int __cifs_calc_signature(struct smb_rqst *rqst,
612 int cifs_alloc_hash(const char *name, struct shash_desc **sdesc);
615 int cifs_try_adding_channels(struct cifs_ses *ses);
619 int
644 int
645 SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon, bool in_mount);
648 int copy_path_name(char *dst, const char *src);
649 int smb2_parse_query_directory(struct cifs_tcon *tcon, struct kvec *rsp_iov,
650 int resp_buftype,
655 int cifs_update_super_prepath(struct cifs_sb_info *cifs_sb, char *prefix);
658 int parse_reparse_point(struct reparse_data_buffer *buf,
662 int __cifs_sfu_make_node(unsigned int xid, struct inode *inode,
666 int cifs_sfu_make_node(unsigned int xid, struct inode *inode,
672 static inline int get_dfs_path(const unsigned int xid, struct cifs_ses *ses, in get_dfs_path()
675 struct dfs_info3_param *referral, int remap) in get_dfs_path()
681 int match_target_ip(struct TCP_Server_Info *server,
684 int cifs_inval_name_dfs_link_error(const unsigned int xid,
690 static inline int cifs_inval_name_dfs_link_error(const unsigned int xid, in cifs_inval_name_dfs_link_error()
701 static inline int cifs_create_options(struct cifs_sb_info *cifs_sb, int options) in cifs_create_options()
709 int cifs_wait_for_server_reconnect(struct TCP_Server_Info *server, bool retry);