Skip to content

Commit 782d577

Browse files
committed
Update annotations for zero-copy API.
1 parent 6d3b0f8 commit 782d577

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/ff_api.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,9 @@ int ff_zc_mbuf_get(struct ff_zc_mbuf *m, int len);
269269
* APP can call this function multiple times, need pay attion to the offset of data.
270270
* but the total len can't be larger than m->len.
271271
* After this fuction return success,
272-
* the struct 'ff_zc_mbuf *m' can be reused in `ff_zc_mbuf_get`.
272+
*
273+
* the struct 'ff_zc_mbuf *m' can be reused in `ff_zc_mbuf_get` and then Use normally.
274+
* Nerver directly reused in `ff_zc_mbuf_write` before recall `ff_zc_mbuf_get`.
273275
*
274276
* APP nedd call 'ff_write' to send data actually after finish write data to mbuf,
275277
* And use 'bsd_mbuf' of 'struct ff_zc_mbuf' as the 'buf' argument.

0 commit comments

Comments
 (0)