summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuyang Huang <yuyanghuang@google.com>2023-10-11 10:10:02 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-10-11 10:10:02 +0000
commit230beba8c698579124273b0a40eb3993f21b5287 (patch)
treeeff2bda0b020240f3b9adb87f68d48815f40794f
parent622f521dffb4fedf07d3835c9c8ccdab941527b6 (diff)
parent7ef1cad2615157d8766fcebc8a490293819157fd (diff)
downloadapf-230beba8c698579124273b0a40eb3993f21b5287.tar.gz
Update the apf_allocate_buffer() API doc am: 3432300e07 am: 7ef1cad261
Original change: https://android-review.googlesource.com/c/platform/hardware/google/apf/+/2783810 Change-Id: I316b5b83eba67003c2b87fb42dfdcde2e955f154 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--v5/apf_interpreter.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/v5/apf_interpreter.h b/v5/apf_interpreter.h
index 2af71d1..461d3ee 100644
--- a/v5/apf_interpreter.h
+++ b/v5/apf_interpreter.h
@@ -33,7 +33,8 @@ uint32_t apf_version();
* Allocates a buffer for APF program to write the transmit packet.
*
* The implementations must always support allocating at least one 1500 bytes
- * buffer until it is effectively transmitted.
+ * buffer until it is effectively transmitted. Before passing a memory region
+ * back to the caller, the implementations must zero it out.
*
* The firmware is responsible for freeing everything that was allocated by APF.
* It is OK if the firmware decides only to limit allocations to at most one