9p.h (30aa19446d82358a30eac3b556b4d6641e00b7c1) | 9p.h (487729e9f667644ee0d6762b24269e7758ad2e5e) |
---|---|
1#ifndef QEMU_9P_H 2#define QEMU_9P_H 3 4#include <dirent.h> 5#include <utime.h> 6#include <sys/resource.h> 7#include "fsdev/file-op-9p.h" 8#include "fsdev/9p-iov-marshal.h" --- 129 unchanged lines hidden (view full) --- 138 uint16_t tag_le; 139} QEMU_PACKED P9MsgHeader; 140/* According to the specification, 9p messages start with a 7-byte header. 141 * Since most of the code uses this header size in literal form, we must be 142 * sure this is indeed the case. 143 */ 144QEMU_BUILD_BUG_ON(sizeof(P9MsgHeader) != 7); 145 | 1#ifndef QEMU_9P_H 2#define QEMU_9P_H 3 4#include <dirent.h> 5#include <utime.h> 6#include <sys/resource.h> 7#include "fsdev/file-op-9p.h" 8#include "fsdev/9p-iov-marshal.h" --- 129 unchanged lines hidden (view full) --- 138 uint16_t tag_le; 139} QEMU_PACKED P9MsgHeader; 140/* According to the specification, 9p messages start with a 7-byte header. 141 * Since most of the code uses this header size in literal form, we must be 142 * sure this is indeed the case. 143 */ 144QEMU_BUILD_BUG_ON(sizeof(P9MsgHeader) != 7); 145 |
146struct V9fsPDU 147{ | 146struct V9fsPDU { |
148 uint32_t size; 149 uint16_t tag; 150 uint8_t id; 151 uint8_t cancelled; 152 CoQueue complete; 153 V9fsState *s; 154 QLIST_ENTRY(V9fsPDU) next; 155 uint32_t idx; --- 109 unchanged lines hidden (view full) --- 265 /* 266 * private pointer for fs drivers, that 267 * have its own internal representation of 268 * open files. 269 */ 270 void *private; 271}; 272 | 147 uint32_t size; 148 uint16_t tag; 149 uint8_t id; 150 uint8_t cancelled; 151 CoQueue complete; 152 V9fsState *s; 153 QLIST_ENTRY(V9fsPDU) next; 154 uint32_t idx; --- 109 unchanged lines hidden (view full) --- 264 /* 265 * private pointer for fs drivers, that 266 * have its own internal representation of 267 * open files. 268 */ 269 void *private; 270}; 271 |
273struct V9fsFidState 274{ | 272struct V9fsFidState { |
275 int fid_type; 276 int32_t fid; 277 V9fsPath path; 278 V9fsFidOpenState fs; 279 V9fsFidOpenState fs_reclaim; 280 int flags; 281 int open_flags; 282 uid_t uid; --- 50 unchanged lines hidden (view full) --- 333 334/* QID path full entry, as above */ 335typedef struct { 336 dev_t dev; 337 ino_t ino; 338 uint64_t path; 339} QpfEntry; 340 | 273 int fid_type; 274 int32_t fid; 275 V9fsPath path; 276 V9fsFidOpenState fs; 277 V9fsFidOpenState fs_reclaim; 278 int flags; 279 int open_flags; 280 uid_t uid; --- 50 unchanged lines hidden (view full) --- 331 332/* QID path full entry, as above */ 333typedef struct { 334 dev_t dev; 335 ino_t ino; 336 uint64_t path; 337} QpfEntry; 338 |
341struct V9fsState 342{ | 339struct V9fsState { |
343 QLIST_HEAD(, V9fsPDU) free_list; 344 QLIST_HEAD(, V9fsPDU) active_list; 345 V9fsFidState *fid_list; 346 FileOperations *ops; 347 FsContext ctx; 348 char *tag; 349 P9ProtoVersion proto_version; 350 int32_t msize; --- 135 unchanged lines hidden --- | 340 QLIST_HEAD(, V9fsPDU) free_list; 341 QLIST_HEAD(, V9fsPDU) active_list; 342 V9fsFidState *fid_list; 343 FileOperations *ops; 344 FsContext ctx; 345 char *tag; 346 P9ProtoVersion proto_version; 347 int32_t msize; --- 135 unchanged lines hidden --- |