Changeset 4998155 for libcfa/src/concurrency/io/types.hfa
- Timestamp:
- Aug 14, 2020, 12:33:26 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 7fdae38
- Parents:
- b353a49
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/io/types.hfa
rb353a49 r4998155 17 17 18 18 #if defined(CFA_HAVE_LINUX_IO_URING_H) 19 extern "C" { 20 #include <linux/types.h> 21 } 22 19 23 #include "bits/locks.hfa" 20 24 … … 23 27 struct __submition_data { 24 28 // Head and tail of the ring (associated with array) 25 volatile uint32_t* head;26 volatile uint32_t* tail;27 volatile uint32_tprev_head;29 volatile __u32 * head; 30 volatile __u32 * tail; 31 volatile __u32 prev_head; 28 32 29 33 // The actual kernel ring which uses head/tail 30 34 // indexes into the sqes arrays 31 uint32_t* array;35 __u32 * array; 32 36 33 37 // number of entries and mask to go with it 34 const uint32_t* num;35 const uint32_t* mask;38 const __u32 * num; 39 const __u32 * mask; 36 40 37 41 // Submission flags (Not sure what for) 38 uint32_t* flags;42 __u32 * flags; 39 43 40 44 // number of sqes not submitted (whatever that means) 41 uint32_t* dropped;45 __u32 * dropped; 42 46 43 47 // Like head/tail but not seen by the kernel 44 volatile uint32_t* ready;45 uint32_tready_cnt;48 volatile __u32 * ready; 49 __u32 ready_cnt; 46 50 47 51 __spinlock_t lock; … … 58 62 struct __completion_data { 59 63 // Head and tail of the ring 60 volatile uint32_t* head;61 volatile uint32_t* tail;64 volatile __u32 * head; 65 volatile __u32 * tail; 62 66 63 67 // number of entries and mask to go with it 64 const uint32_t* mask;65 const uint32_t* num;68 const __u32 * mask; 69 const __u32 * num; 66 70 67 71 // number of cqes not submitted (whatever that means) 68 uint32_t* overflow;72 __u32 * overflow; 69 73 70 74 // the kernel ring … … 79 83 struct __submition_data submit_q; 80 84 struct __completion_data completion_q; 81 uint32_tring_flags;85 __u32 ring_flags; 82 86 int fd; 83 87 bool eager_submits:1; … … 89 93 // IO user data 90 94 struct __io_user_data_t { 91 int32_tresult;92 $thread * thrd;95 __s32 result; 96 oneshot sem; 93 97 }; 94 98
Note: See TracChangeset
for help on using the changeset viewer.