47 unsigned int __xid = _get_xid(); \
48 cFYI(1, "CIFS VFS: in %s as Xid: %u with uid: %d", \
49 __func__, __xid, current_fsuid()); \
53 #define free_xid(curr_xid) \
55 _free_xid(curr_xid); \
56 cFYI(1, "CIFS VFS: leaving %s (xid = %u) rc = %d", \
57 __func__, curr_xid, (int)rc); \
76 void *cbdata,
const int flags);
82 char *in_buf,
int flags);
91 int * ,
const int flags);
103 unsigned int bytes_written);
112 const unsigned short int port);
141 FILE_UNIX_BASIC_INFO *
info,
156 unsigned int xid,
char *full_path,
__u32 dosattr);
159 const unsigned int xid);
166 const char *,
u32 *);
172 unsigned int to_read);
174 struct kvec *iov_orig,
unsigned int nr_segs,
175 unsigned int to_read);
181 const char *devname);
197 #if IS_ENABLED(CONFIG_CIFS_DFS_UPCALL)
200 #define cifs_dfs_release_automount_timer() do { } while (0)
231 const __u16 search_handle);
234 u16 netfid, FILE_ALL_INFO *pFindData);
236 const char *search_Name, FILE_ALL_INFO *
data,
240 const char *search_name, FILE_ALL_INFO *
data,
244 u16 netfid, FILE_UNIX_BASIC_INFO *pFindData);
247 const unsigned char *searchName,
248 FILE_UNIX_BASIC_INFO *pFindData,
252 const char *search_name,
254 unsigned int *num_of_nodes,
258 const char *old_path,
260 unsigned int *num_referrals,
282 int remap_special_chars);
285 __u32 pid_of_opener);
289 __u32 pid_of_opener);
291 extern int CIFSSMBSetAttrLegacy(
unsigned int xid,
struct cifs_tcon *tcon,
300 bool set_allocation);
330 int remap_special_chars);
334 const char *from_name,
const char *to_name,
339 int remap_special_chars);
341 const char *from_name,
const char *to_name,
345 const char *fromName,
const char *toName,
347 int remap_special_chars);
350 const char *fromName,
const char *toName,
354 const unsigned char *searchName,
char **syminfo,
356 #ifdef CONFIG_CIFS_SYMLINK_EXPERIMENTAL
357 extern int CIFSSMBQueryReparseLinkInfo(
const unsigned int xid,
359 const unsigned char *searchName,
364 const char *
fileName,
const int disposition,
365 const int access_flags,
const int omode,
366 __u16 *netfid,
int *pOplock, FILE_ALL_INFO *,
367 const struct nls_table *nls_codepage,
int remap);
369 const char *
fileName,
const int disposition,
370 const int access_flags,
const int omode,
371 __u16 *netfid,
int *pOplock, FILE_ALL_INFO *,
372 const struct nls_table *nls_codepage,
int remap);
375 FILE_UNIX_BASIC_INFO *pRetData,
377 const struct nls_table *nls_codepage,
int remap);
379 const int smb_file_id);
382 const int smb_file_id);
386 int *return_buf_type);
389 const char __user *ubuf,
const int long_op);
391 unsigned int *
nbytes,
struct kvec *iov,
const int nvec);
393 const char *search_name,
__u64 *inode_number,
400 LOCKING_ANDX_RANGE *
buf);
404 const __u32 numLock,
const __u8 lockType,
405 const bool waitFlag,
const __u8 oplock_level);
410 const bool waitFlag);
421 __u32 *pexpected_response_sequence_number);
427 __u32 expected_sequence_number);
428 extern int SMBNTencrypt(
unsigned char *,
unsigned char *,
unsigned char *,
436 #ifdef CONFIG_CIFS_WEAK_PW_HASH
437 extern int calc_lanman_hash(
const char *
password,
const char *cryptkey,
438 bool encrypt,
char *lnm_session_key);
440 #ifdef CONFIG_CIFS_DNOTIFY_EXPERIMENTAL
441 extern int CIFSSMBNotify(
const unsigned int xid,
struct cifs_tcon *tcon,
442 const int notify_subdirs,
const __u16 netfid,
448 const char *fromName,
449 const __u16 target_tid,
450 const char *toName,
const int flags,
452 int remap_special_chars);
454 const unsigned char *searchName,
455 const unsigned char *ea_name,
char *EAData,
457 int remap_special_chars);
459 const char *
fileName,
const char *ea_name,
460 const void *ea_value,
const __u16 ea_value_len,
461 const struct nls_table *nls_codepage,
int remap_special_chars);
467 const unsigned char *searchName,
468 char *acl_inf,
const int buflen,
const int acl_type,
469 const struct nls_table *nls_codepage,
int remap_special_chars);
472 const char *local_acl,
const int buflen,
const int acl_type,
473 const struct nls_table *nls_codepage,
int remap_special_chars);
475 const int netfid,
__u64 *pExtAttrBits,
__u64 *pMask);
479 const unsigned char *
path,
481 extern int mdfour(
unsigned char *,
unsigned char *,
int);
482 extern int E_md4hash(
const unsigned char *passwd,
unsigned char *p16,
484 extern int SMBencrypt(
unsigned char *passwd,
const unsigned char *c8,