coda_psdev.h 679 B

12345678910111213141516171819202122232425262728
  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 REQ_ASYNC 0x1
  18. #define REQ_READ 0x2
  19. #define REQ_WRITE 0x4
  20. #define REQ_ABORT 0x8
  21. #endif