Revision fac4f111 hw/virtio-9p.h
b/hw/virtio-9p.h | ||
---|---|---|
146 | 146 |
size_t config_size; |
147 | 147 |
} V9fsState; |
148 | 148 |
|
149 |
typedef struct V9fsCreateState { |
|
150 |
V9fsPDU *pdu; |
|
151 |
size_t offset; |
|
152 |
V9fsFidState *fidp; |
|
153 |
V9fsQID qid; |
|
154 |
int32_t perm; |
|
155 |
int8_t mode; |
|
156 |
struct stat stbuf; |
|
157 |
V9fsString name; |
|
158 |
V9fsString extension; |
|
159 |
V9fsString fullname; |
|
160 |
} V9fsCreateState; |
|
161 |
|
|
162 |
typedef struct V9fsStatState { |
|
163 |
V9fsPDU *pdu; |
|
164 |
size_t offset; |
|
165 |
V9fsStat v9stat; |
|
166 |
V9fsFidState *fidp; |
|
167 |
struct stat stbuf; |
|
168 |
} V9fsStatState; |
|
169 |
|
|
170 |
typedef struct V9fsWalkState { |
|
171 |
V9fsPDU *pdu; |
|
172 |
size_t offset; |
|
173 |
int16_t nwnames; |
|
174 |
int name_idx; |
|
175 |
V9fsQID *qids; |
|
176 |
V9fsFidState *fidp; |
|
177 |
V9fsFidState *newfidp; |
|
178 |
V9fsString path; |
|
179 |
V9fsString *wnames; |
|
180 |
struct stat stbuf; |
|
181 |
} V9fsWalkState; |
|
182 |
|
|
183 |
typedef struct V9fsOpenState { |
|
184 |
V9fsPDU *pdu; |
|
185 |
size_t offset; |
|
186 |
int8_t mode; |
|
187 |
V9fsFidState *fidp; |
|
188 |
V9fsQID qid; |
|
189 |
struct stat stbuf; |
|
190 |
} V9fsOpenState; |
|
191 |
|
|
192 |
typedef struct V9fsReadState { |
|
193 |
V9fsPDU *pdu; |
|
194 |
size_t offset; |
|
195 |
int32_t count; |
|
196 |
int32_t total; |
|
197 |
int64_t off; |
|
198 |
V9fsFidState *fidp; |
|
199 |
struct iovec iov[128]; /* FIXME: bad, bad, bad */ |
|
200 |
struct iovec *sg; |
|
201 |
off_t dir_pos; |
|
202 |
struct dirent *dent; |
|
203 |
struct stat stbuf; |
|
204 |
V9fsString name; |
|
205 |
V9fsStat v9stat; |
|
206 |
int32_t len; |
|
207 |
int32_t cnt; |
|
208 |
int32_t max_count; |
|
209 |
} V9fsReadState; |
|
210 |
|
|
211 |
typedef struct V9fsWriteState { |
|
212 |
V9fsPDU *pdu; |
|
213 |
size_t offset; |
|
214 |
int32_t len; |
|
215 |
int32_t count; |
|
216 |
int32_t total; |
|
217 |
int64_t off; |
|
218 |
V9fsFidState *fidp; |
|
219 |
struct iovec iov[128]; /* FIXME: bad, bad, bad */ |
|
220 |
struct iovec *sg; |
|
221 |
int cnt; |
|
222 |
} V9fsWriteState; |
|
223 |
|
|
224 |
typedef struct V9fsRemoveState { |
|
225 |
V9fsPDU *pdu; |
|
226 |
size_t offset; |
|
227 |
V9fsFidState *fidp; |
|
228 |
} V9fsRemoveState; |
|
229 |
|
|
230 |
typedef struct V9fsWstatState |
|
231 |
{ |
|
232 |
V9fsPDU *pdu; |
|
233 |
size_t offset; |
|
234 |
int16_t unused; |
|
235 |
V9fsStat v9stat; |
|
236 |
V9fsFidState *fidp; |
|
237 |
struct stat stbuf; |
|
238 |
V9fsString nname; |
|
239 |
} V9fsWstatState; |
|
240 |
|
|
149 | 241 |
struct virtio_9p_config |
150 | 242 |
{ |
151 | 243 |
/* number of characters in tag */ |
Also available in: Unified diff