summaryrefslogtreecommitdiff
path: root/lwis_periodic_io.h
diff options
context:
space:
mode:
authorHolmes Chou <holmeschou@google.com>2021-11-17 15:19:47 +0800
committerTreeHugger Robot <treehugger-gerrit@google.com>2022-01-11 12:05:44 +0000
commitc25f66c296f5818f3ac744c49a61862595aeb703 (patch)
tree37b7312ae9a711c9b298c2be1e7cc8dd54c70625 /lwis_periodic_io.h
parentd7377162feb6bde5e7fe2515d8aa98d1dab01dde (diff)
downloadlwis-c25f66c296f5818f3ac744c49a61862595aeb703.tar.gz
LWIS: Implement memory allocator for reuse
Memory is allocated/deallocated at each IOCTL, transaction, etc., which could be a very costly operation. LWIS should have a memory allocator to help reuse memory buffer to reduce the number to allocations. Bug: 199428848 Test: GCA, CTS Signed-off-by: Holmes Chou <holmeschou@google.com> Change-Id: I2ed87bb01ddce54244c3f4adac89a045178097d8
Diffstat (limited to 'lwis_periodic_io.h')
-rw-r--r--lwis_periodic_io.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lwis_periodic_io.h b/lwis_periodic_io.h
index fc7f551..dbec999 100644
--- a/lwis_periodic_io.h
+++ b/lwis_periodic_io.h
@@ -81,6 +81,6 @@ int lwis_periodic_io_client_flush(struct lwis_client *client);
int lwis_periodic_io_client_cleanup(struct lwis_client *client);
int lwis_periodic_io_submit(struct lwis_client *client, struct lwis_periodic_io *periodic_io);
int lwis_periodic_io_cancel(struct lwis_client *client, int64_t id);
-void lwis_periodic_io_free(struct lwis_periodic_io *periodic_io);
+void lwis_periodic_io_free(struct lwis_device *lwis_dev, struct lwis_periodic_io *periodic_io);
#endif /* LWIS_PERIODIC_IO_H_ */ \ No newline at end of file