summaryrefslogtreecommitdiff
path: root/lwis_transaction.h
diff options
context:
space:
mode:
authorEdmond Chung <edmondchung@google.com>2023-02-15 12:42:20 -0800
committerEdmond Chung <edmondchung@google.com>2023-02-24 04:17:34 +0000
commitf2b68cdd6ab891d34ab2d1ee36551d5556275923 (patch)
tree888a11e3d47c37dd1119bb4f0daf210b53dd710b /lwis_transaction.h
parent2bcaf2071dd8d8ae2f5456aa7b80ea697051423a (diff)
downloadlwis-f2b68cdd6ab891d34ab2d1ee36551d5556275923.tar.gz
Add precondition fence to event trigger logic
Commit-Topic: lwis-precond-fence Bug: 268208840 Test: CTS, GCA Change-Id: I525a07beb97a3704aee29cfc3d29aa24e9bea4b9 Signed-off-by: Edmond Chung <edmondchung@google.com>
Diffstat (limited to 'lwis_transaction.h')
-rw-r--r--lwis_transaction.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/lwis_transaction.h b/lwis_transaction.h
index d2e4e2a..67765b5 100644
--- a/lwis_transaction.h
+++ b/lwis_transaction.h
@@ -45,6 +45,8 @@ struct lwis_transaction {
struct file *trigger_fence_fps[LWIS_TRIGGER_NODES_MAX_NUM];
/* Parameters for completion fences */
struct list_head completion_fence_list;
+ /* Precondition fence file pointer */
+ struct file *precondition_fence_fp;
};
/* For debugging purposes, keeps track of the transaction information, as
@@ -88,9 +90,8 @@ int lwis_transaction_submit_locked(struct lwis_client *client,
int lwis_transaction_replace_locked(struct lwis_client *client,
struct lwis_transaction *transaction);
-int lwis_trigger_event_add_weak_transaction(struct lwis_client *client,
- int64_t transaction_id,
- int64_t event_id);
+int lwis_trigger_event_add_weak_transaction(struct lwis_client *client, int64_t transaction_id,
+ int64_t event_id, int32_t precondition_fence_fd);
void lwis_process_transactions_in_queue(struct lwis_client *client);