| struct list_head rq_queue; /* recvq or xmitq for the server */ |
| wait_queue_head_t rq_wait; |
| int rq_mid; /* multiplex ID, set by request.c */ |
| struct smb_sb_info *rq_server; |
| /* header + word count + parameter words + byte count */ |
| unsigned char rq_header[SMB_HEADER_LEN + 20*2 + 2]; |
| unsigned char *rq_buffer; |
| /* FIXME: this is not good enough for merging IO requests. */ |
| int (*rq_setup_read) (struct smb_request *); |
| void (*rq_callback) (struct smb_request *); |
| /* ------ trans2 stuff ------ */ |
| u16 rq_trans2_command; /* 0 if not a trans2 request */ |
| unsigned char *rq_trans2buffer; |
| /* ------ response ------ */ |
| #define SMB_REQ_STATIC 0x0001 /* rq_buffer is static */ |
| #define SMB_REQ_NORETRY 0x0002 /* request is invalid after retry */ |
| #define SMB_REQ_TRANSMITTED 0x4000 /* all data has been sent */ |
| #define SMB_REQ_RECEIVED 0x8000 /* reply received, smbiod is done */ |
| #define xSMB_REQ_NOREPLY 0x0004 /* we don't want the reply (if any) */ |
| #define xSMB_REQ_NORECEIVER 0x0008 /* caller doesn't wait for response */ |