diff options
author | Dirk Engling <erdgeist@erdgeist.org> | 2024-04-13 00:47:29 +0200 |
---|---|---|
committer | Dirk Engling <erdgeist@erdgeist.org> | 2024-04-13 00:47:29 +0200 |
commit | 1a70d9f9ef81ac1b5e843ac71f3538f7845e03ae (patch) | |
tree | 20a20077503c01dc024e88a6a8d82bf89faf22fd /ot_mutex.h | |
parent | 301faeb10c5994a6fd31adc5f0b4f8f2b5c23502 (diff) |
First shot on chunked transfers
Diffstat (limited to 'ot_mutex.h')
-rw-r--r-- | ot_mutex.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -54,9 +54,11 @@ typedef enum { | |||
54 | TASK_DMEM = 0x0300, | 54 | TASK_DMEM = 0x0300, |
55 | 55 | ||
56 | TASK_DONE = 0x0f00, | 56 | TASK_DONE = 0x0f00, |
57 | TASK_DONE_PARTIAL = 0x0f01, | ||
57 | 58 | ||
58 | TASK_FLAG_GZIP = 0x1000, | 59 | TASK_FLAG_GZIP = 0x1000, |
59 | TASK_FLAG_BZIP2 = 0x2000, | 60 | TASK_FLAG_BZIP2 = 0x2000, |
61 | TASK_FLAG_CHUNKED = 0x4000, | ||
60 | 62 | ||
61 | TASK_TASK_MASK = 0x0fff, | 63 | TASK_TASK_MASK = 0x0fff, |
62 | TASK_CLASS_MASK = 0x0f00, | 64 | TASK_CLASS_MASK = 0x0f00, |
@@ -70,6 +72,7 @@ void mutex_workqueue_canceltask( int64 sock ); | |||
70 | void mutex_workqueue_pushsuccess( ot_taskid taskid ); | 72 | void mutex_workqueue_pushsuccess( ot_taskid taskid ); |
71 | ot_taskid mutex_workqueue_poptask( ot_tasktype *tasktype ); | 73 | ot_taskid mutex_workqueue_poptask( ot_tasktype *tasktype ); |
72 | int mutex_workqueue_pushresult( ot_taskid taskid, int iovec_entries, struct iovec *iovector ); | 74 | int mutex_workqueue_pushresult( ot_taskid taskid, int iovec_entries, struct iovec *iovector ); |
73 | int64 mutex_workqueue_popresult( int *iovec_entries, struct iovec ** iovector ); | 75 | int mutex_workqueue_pushchunked(ot_taskid taskid, struct iovec *iovec); |
76 | int64 mutex_workqueue_popresult( int *iovec_entries, struct iovec ** iovector, int *is_partial ); | ||
74 | 77 | ||
75 | #endif | 78 | #endif |