coda_psdev.h 720 B

123456789101112131415161718192021222324252627
  1. #ifndef __CODA_PSDEV_H
  2. #define __CODA_PSDEV_H
  3. #include <linux/magic.h>
  4. #define CODA_PSDEV_MAJOR 67
  5. #define MAX_CODADEVS 5 /* how many do we allow */
  6. /* messages between coda filesystem in kernel and Venus */
  7. struct upc_req {
  8. struct list_head uc_chain;
  9. caddr_t uc_data;
  10. u_short uc_flags;
  11. u_short uc_inSize; /* Size is at most 5000 bytes */
  12. u_short uc_outSize;
  13. u_short uc_opcode; /* copied from data to save lookup */
  14. int uc_unique;
  15. wait_queue_head_t uc_sleep; /* process' wait queue */
  16. };
  17. #define CODA_REQ_ASYNC 0x1
  18. #define CODA_REQ_READ 0x2
  19. #define CODA_REQ_WRITE 0x4
  20. #define CODA_REQ_ABORT 0x8
  21. #endif /* __CODA_PSDEV_H */