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 int smb_send_kvec(struct TCP_Server_Info *server,
37 extern unsigned int _get_xid(void);
38 extern void _free_xid(unsigned int);
41 unsigned int __xid = _get_xid(); \
53 __func__, curr_xid, (int)rc); \
55 trace_smb3_exit_err(curr_xid, __func__, (int)rc); \
59 extern int init_cifs_idmap(void);
61 extern int init_cifs_spnego(void);
65 const char *tree, int tree_len,
83 int add_treename);
89 extern int cifs_handle_standard(struct TCP_Server_Info *server,
93 extern int smb3_parse_devname(const char *devname, struct smb3_fs_context *ctx);
94 extern int smb3_parse_opt(const char *options, const char *key, char **val);
95 extern int cifs_ipaddr_cmp(struct sockaddr *srcaddr, struct sockaddr *rhs);
97 extern int cifs_discard_remaining_data(struct TCP_Server_Info *server);
98 extern int cifs_call_async(struct TCP_Server_Info *server,
101 mid_handle_t *handle, void *cbdata, const int flags,
104 extern int cifs_send_recv(const unsigned int xid, struct cifs_ses *ses,
106 struct smb_rqst *rqst, int *resp_buf_type,
107 const int flags, struct kvec *resp_iov);
108 extern int compound_send_recv(const unsigned int xid, struct cifs_ses *ses,
110 const int flags, const int num_rqst,
111 struct smb_rqst *rqst, int *resp_buf_type,
113 extern int SendReceive(const unsigned int /* xid */ , struct cifs_ses *,
116 int * /* bytes returned */ , const int);
117 extern int SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses,
118 char *in_buf, int flags);
124 extern int cifs_check_receive(struct mid_q_entry *mid,
126 extern int cifs_wait_mtu_credits(struct TCP_Server_Info *server,
129 extern int SendReceive2(const unsigned int /* xid */ , struct cifs_ses *,
130 struct kvec *, int /* nvec to send */,
131 int * /* type of buf returned */, const int flags,
133 extern int SendReceiveBlockingLock(const unsigned int xid,
137 int *bytes_returned);
145 extern int cifs_reconnect(struct TCP_Server_Info *server,
147 extern int checkSMB(char *buf, unsigned int len, struct TCP_Server_Info *srvr);
153 unsigned int bytes_written);
156 extern struct cifsFileInfo *find_writable_file(struct cifsInodeInfo *, int);
157 extern int cifs_get_writable_file(struct cifsInodeInfo *cifs_inode,
158 int flags,
160 extern int cifs_get_writable_path(struct cifs_tcon *tcon, const char *name,
161 int flags,
164 extern int cifs_get_readable_path(struct cifs_tcon *tcon, const char *name,
166 extern int cifs_get_hardlink_path(struct cifs_tcon *tcon, struct inode *inode,
168 extern unsigned int smbCalcSize(void *buf);
169 extern int decode_negTokenInit(unsigned char *security_blob, int length,
171 extern int cifs_convert_address(struct sockaddr *dst, const char *src, int len);
172 extern void cifs_set_port(struct sockaddr *addr, const unsigned short int port);
173 extern int map_smb_to_linux_error(char *buf, bool logErr);
174 extern int map_and_check_smb_error(struct mid_q_entry *mid, bool logErr);
176 const struct cifs_tcon *, int /* length of
178 extern int small_smb_init_no_tc(const int smb_cmd, const int wct,
183 extern int CIFS_SessSetup(const unsigned int xid, struct cifs_ses *ses,
189 int offset);
191 extern int cifs_get_writer(struct cifsInodeInfo *cinode);
194 extern int cifs_unlock_range(struct cifsFileInfo *cfile,
195 struct file_lock *flock, const unsigned int xid);
196 extern int cifs_push_mandatory_locks(struct cifsFileInfo *cfile);
202 extern int cifs_posix_open(const char *full_path, struct inode **inode,
203 struct super_block *sb, int mode,
204 unsigned int f_flags, __u32 *oplock, __u16 *netfid,
205 unsigned int xid);
212 extern int cifs_fattr_to_inode(struct inode *inode, struct cifs_fattr *fattr,
217 int cifs_get_inode_info(struct inode **inode, const char *full_path,
218 struct cifs_open_info_data *data, struct super_block *sb, int xid,
220 extern int smb311_posix_get_inode_info(struct inode **inode,
224 const unsigned int xid);
225 extern int cifs_get_inode_info_unix(struct inode **pinode,
227 struct super_block *sb, unsigned int xid);
228 extern int cifs_set_file_info(struct inode *inode, struct iattr *attrs,
229 unsigned int xid, const char *full_path, __u32 dosattr);
230 extern int cifs_rename_pending_delete(const char *full_path,
232 const unsigned int xid);
233 extern int sid_to_id(struct cifs_sb_info *cifs_sb, struct smb_sid *psid,
235 extern int cifs_acl_to_fattr(struct cifs_sb_info *cifs_sb,
239 extern int id_mode_to_cifs_acl(struct inode *inode, const char *path, __u64 *pnmode,
246 struct dentry *dentry, int type);
247 extern int cifs_set_acl(struct mnt_idmap *idmap,
248 struct dentry *dentry, struct posix_acl *acl, int type);
249 extern int set_cifs_acl(struct smb_ntsd *pntsd, __u32 len, struct inode *ino,
250 const char *path, int flag);
251 extern unsigned int setup_authusers_ACE(struct smb_ace *pace);
252 extern unsigned int setup_special_mode_ACE(struct smb_ace *pace,
255 extern unsigned int setup_special_user_owner_ACE(struct smb_ace *pace);
258 extern int cifs_read_from_socket(struct TCP_Server_Info *server, char *buf,
259 unsigned int to_read);
262 int cifs_read_iter_from_socket(struct TCP_Server_Info *server,
264 unsigned int to_read);
265 extern int cifs_setup_cifs_sb(struct cifs_sb_info *cifs_sb);
267 int cifs_mount_get_session(struct cifs_mount_ctx *mnt_ctx);
268 int cifs_is_path_remote(struct cifs_mount_ctx *mnt_ctx);
269 int cifs_mount_get_tcon(struct cifs_mount_ctx *mnt_ctx);
270 extern int cifs_match_super(struct super_block *, void *);
271 extern int cifs_mount(struct cifs_sb_info *cifs_sb, struct smb3_fs_context *ctx);
279 int rw_check);
310 int from_reconnect);
322 int cifs_tree_connect(const unsigned int xid, struct cifs_tcon *tcon);
324 extern int cifs_negotiate_protocol(const unsigned int xid,
327 extern int cifs_setup_session(const unsigned int xid, struct cifs_ses *ses,
330 extern int cifs_enable_signing(struct TCP_Server_Info *server, bool mnt_sign_required);
331 extern int CIFSSMBNegotiate(const unsigned int xid,
335 extern int CIFSTCon(const unsigned int xid, struct cifs_ses *ses,
339 extern int CIFSFindFirst(const unsigned int xid, struct cifs_tcon *tcon,
345 extern int CIFSFindNext(const unsigned int xid, struct cifs_tcon *tcon,
349 extern int CIFSFindClose(const unsigned int xid, struct cifs_tcon *tcon,
352 extern int CIFSSMBQFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
354 extern int CIFSSMBQPathInfo(const unsigned int xid, struct cifs_tcon *tcon,
356 int legacy /* whether to use old info level */,
357 const struct nls_table *nls_codepage, int remap);
358 extern int SMBQueryInformation(const unsigned int xid, struct cifs_tcon *tcon,
360 const struct nls_table *nls_codepage, int remap);
362 extern int CIFSSMBUnixQFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
364 extern int CIFSSMBUnixQPathInfo(const unsigned int xid,
368 const struct nls_table *nls_codepage, int remap);
370 extern int CIFSGetDFSRefer(const unsigned int xid, struct cifs_ses *ses,
373 unsigned int *num_of_nodes,
374 const struct nls_table *nls_codepage, int remap);
376 extern int parse_dfs_referrals(struct get_dfs_referral_rsp *rsp, u32 rsp_size,
377 unsigned int *num_of_nodes,
379 const struct nls_table *nls_codepage, int remap,
381 extern void reset_cifs_unix_caps(unsigned int xid, struct cifs_tcon *tcon,
384 extern int CIFSSMBQFSInfo(const unsigned int xid, struct cifs_tcon *tcon,
386 extern int SMBOldQFSInfo(const unsigned int xid, struct cifs_tcon *tcon,
388 extern int CIFSSMBSetFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon,
391 extern int CIFSSMBQFSAttributeInfo(const unsigned int xid,
393 extern int CIFSSMBQFSDeviceInfo(const unsigned int xid, struct cifs_tcon *tcon);
394 extern int CIFSSMBQFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon);
395 extern int CIFSSMBQFSPosixInfo(const unsigned int xid, struct cifs_tcon *tcon,
398 extern int SMBSetInformation(const unsigned int xid, struct cifs_tcon *tcon,
402 extern int CIFSSMBSetPathInfo(const unsigned int xid, struct cifs_tcon *tcon,
406 extern int CIFSSMBSetFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
409 extern int CIFSSMBSetFileDisposition(const unsigned int xid,
413 extern int CIFSSMBSetEOF(const unsigned int xid, struct cifs_tcon *tcon,
417 extern int CIFSSMBSetFileSize(const unsigned int xid, struct cifs_tcon *tcon,
431 extern int CIFSSMBUnixSetFileInfo(const unsigned int xid,
436 extern int CIFSSMBUnixSetPathInfo(const unsigned int xid,
440 int remap);
442 extern int CIFSSMBMkDir(const unsigned int xid, struct inode *inode,
445 extern int CIFSSMBRmDir(const unsigned int xid, struct cifs_tcon *tcon,
447 extern int CIFSPOSIXDelFile(const unsigned int xid, struct cifs_tcon *tcon,
450 int remap_special_chars);
451 extern int CIFSSMBDelFile(const unsigned int xid, struct cifs_tcon *tcon,
454 int CIFSSMBRename(const unsigned int xid, struct cifs_tcon *tcon,
458 extern int CIFSSMBRenameOpenFile(const unsigned int xid, struct cifs_tcon *tcon,
459 int netfid, const char *target_name,
461 int remap_special_chars);
462 int CIFSCreateHardLink(const unsigned int xid,
467 extern int CIFSUnixCreateHardLink(const unsigned int xid,
471 int remap_special_chars);
472 extern int CIFSUnixCreateSymLink(const unsigned int xid,
475 const struct nls_table *nls_codepage, int remap);
476 extern int CIFSSMBUnixQuerySymLink(const unsigned int xid,
479 const struct nls_table *nls_codepage, int remap);
480 extern int cifs_query_reparse_point(const unsigned int xid,
485 int *rsp_buftype);
486 extern int CIFSSMB_set_compression(const unsigned int xid,
488 extern int CIFS_open(const unsigned int xid, struct cifs_open_parms *oparms,
489 int *oplock, FILE_ALL_INFO *buf);
490 extern int SMBLegacyOpen(const unsigned int xid, struct cifs_tcon *tcon,
491 const char *fileName, const int disposition,
492 const int access_flags, const int omode,
493 __u16 *netfid, int *pOplock, FILE_ALL_INFO *,
494 const struct nls_table *nls_codepage, int remap);
495 extern int CIFSPOSIXCreate(const unsigned int xid, struct cifs_tcon *tcon,
499 const struct nls_table *nls_codepage, int remap);
500 extern int CIFSSMBClose(const unsigned int xid, struct cifs_tcon *tcon,
501 const int smb_file_id);
503 extern int CIFSSMBFlush(const unsigned int xid, struct cifs_tcon *tcon,
504 const int smb_file_id);
506 extern int CIFSSMBRead(const unsigned int xid, struct cifs_io_parms *io_parms,
507 unsigned int *nbytes, char **buf,
508 int *return_buf_type);
509 extern int CIFSSMBWrite(const unsigned int xid, struct cifs_io_parms *io_parms,
510 unsigned int *nbytes, const char *buf);
511 extern int CIFSSMBWrite2(const unsigned int xid, struct cifs_io_parms *io_parms,
512 unsigned int *nbytes, struct kvec *iov, const int nvec);
513 extern int CIFSGetSrvInodeNumber(const unsigned int xid, struct cifs_tcon *tcon,
516 int remap);
518 extern int cifs_lockv(const unsigned int xid, struct cifs_tcon *tcon,
522 extern int CIFSSMBLock(const unsigned int xid, struct cifs_tcon *tcon,
527 extern int CIFSSMBPosixLock(const unsigned int xid, struct cifs_tcon *tcon,
532 extern int CIFSSMBTDis(const unsigned int xid, struct cifs_tcon *tcon);
533 extern int CIFSSMBEcho(struct TCP_Server_Info *server);
534 extern int CIFSSMBLogoff(const unsigned int xid, struct cifs_ses *ses);
542 extern int cifs_sign_rqst(struct smb_rqst *rqst, struct TCP_Server_Info *server,
544 extern int cifs_sign_smbv(struct kvec *iov, int n_vec, struct TCP_Server_Info *,
546 extern int cifs_sign_smb(struct smb_hdr *, struct TCP_Server_Info *, __u32 *);
547 extern int cifs_verify_signature(struct smb_rqst *rqst,
550 extern int setup_ntlmv2_rsp(struct cifs_ses *, const struct nls_table *);
552 extern int calc_seckey(struct cifs_ses *);
553 extern int generate_smb30signingkey(struct cifs_ses *ses,
555 extern int generate_smb311signingkey(struct cifs_ses *ses,
559 extern ssize_t CIFSSMBQAllEAs(const unsigned int xid, struct cifs_tcon *tcon,
563 extern int CIFSSMBSetEA(const unsigned int xid, struct cifs_tcon *tcon,
568 extern int CIFSSMBGetCIFSACL(const unsigned int xid, struct cifs_tcon *tcon,
570 extern int CIFSSMBSetCIFSACL(const unsigned int, struct cifs_tcon *, __u16,
571 struct smb_ntsd *pntsd, __u32 len, int aclflag);
572 extern int cifs_do_get_acl(const unsigned int xid, struct cifs_tcon *tcon,
574 struct posix_acl **acl, const int acl_type,
575 const struct nls_table *nls_codepage, int remap);
576 extern int cifs_do_set_acl(const unsigned int xid, struct cifs_tcon *tcon,
578 const struct posix_acl *acl, const int acl_type,
579 const struct nls_table *nls_codepage, int remap);
580 extern int CIFSGetExtAttr(const unsigned int xid, struct cifs_tcon *tcon,
581 const int netfid, __u64 *pExtAttrBits, __u64 *pMask);
585 extern int check_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
589 extern int E_md4hash(const unsigned char *passwd, unsigned char *p16,
600 int cifs_async_readv(struct cifs_io_subrequest *rdata);
601 int cifs_readv_receive(struct TCP_Server_Info *server, struct mid_q_entry *mid);
604 int cifs_query_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
607 unsigned int *pbytes_read);
608 int cifs_create_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
611 unsigned int *pbytes_written);
612 int __cifs_calc_signature(struct smb_rqst *rqst,
618 int cifs_alloc_hash(const char *name, struct shash_desc **sdesc);
621 int cifs_try_adding_channels(struct cifs_ses *ses);
625 int
650 int
651 SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon, bool in_mount);
654 int copy_path_name(char *dst, const char *src);
655 int smb2_parse_query_directory(struct cifs_tcon *tcon, struct kvec *rsp_iov,
656 int resp_buftype,
661 int cifs_update_super_prepath(struct cifs_sb_info *cifs_sb, char *prefix);
664 int parse_reparse_point(struct reparse_data_buffer *buf,
668 int __cifs_sfu_make_node(unsigned int xid, struct inode *inode,
672 int cifs_sfu_make_node(unsigned int xid, struct inode *inode,
678 static inline int get_dfs_path(const unsigned int xid, struct cifs_ses *ses, in get_dfs_path()
681 struct dfs_info3_param *referral, int remap) in get_dfs_path()
687 int match_target_ip(struct TCP_Server_Info *server,
690 int cifs_inval_name_dfs_link_error(const unsigned int xid,
696 static inline int cifs_inval_name_dfs_link_error(const unsigned int xid, in cifs_inval_name_dfs_link_error()
707 static inline int cifs_create_options(struct cifs_sb_info *cifs_sb, int options) in cifs_create_options()
715 int cifs_wait_for_server_reconnect(struct TCP_Server_Info *server, bool retry);