• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/fs/smbfs/
1#include <linux/list.h>
2#include <linux/types.h>
3#include <linux/uio.h>
4#include <linux/wait.h>
5
6struct smb_request {
7	struct list_head rq_queue;	/* recvq or xmitq for the server */
8
9	atomic_t rq_count;
10
11	wait_queue_head_t rq_wait;
12	int rq_flags;
13	int rq_mid;	/* multiplex ID, set by request.c */
14
15	struct smb_sb_info *rq_server;
16
17	/* header + word count + parameter words + byte count */
18	unsigned char rq_header[SMB_HEADER_LEN + 20*2 + 2];
19
20	int rq_bufsize;
21	unsigned char *rq_buffer;
22
23	unsigned char *rq_page;
24	int rq_rsize;
25
26	int rq_resp_wct;
27	int rq_resp_bcc;
28
29	int rq_rlen;
30	int rq_bytes_recvd;
31
32	int rq_slen;
33	int rq_bytes_sent;
34
35	int rq_iovlen;
36	struct kvec rq_iov[4];
37
38	int (*rq_setup_read) (struct smb_request *);
39	void (*rq_callback) (struct smb_request *);
40
41	/* ------ trans2 stuff ------ */
42
43	u16 rq_trans2_command;	/* 0 if not a trans2 request */
44	unsigned int rq_ldata;
45	unsigned char *rq_data;
46	unsigned int rq_lparm;
47	unsigned char *rq_parm;
48
49	int rq_fragment;
50	u32 rq_total_data;
51	u32 rq_total_parm;
52	int rq_trans2bufsize;
53	unsigned char *rq_trans2buffer;
54
55	/* ------ response ------ */
56
57	unsigned short rq_rcls;
58	unsigned short rq_err;
59	int rq_errno;
60};
61
62#define SMB_REQ_STATIC		0x0001	/* rq_buffer is static */
63#define SMB_REQ_NORETRY		0x0002	/* request is invalid after retry */
64
65#define SMB_REQ_TRANSMITTED	0x4000	/* all data has been sent */
66#define SMB_REQ_RECEIVED	0x8000	/* reply received, smbiod is done */
67
68#define xSMB_REQ_NOREPLY	0x0004	/* we don't want the reply (if any) */
69#define xSMB_REQ_NORECEIVER	0x0008	/* caller doesn't wait for response */
70