Skip to content

Documentation issue on xRingbufferSendAcquire() (IDFGH-12748) #13730

@huming2207

Description

@huming2207

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

Hi all,

I was trying to use the FreeRTOS ring buffer for one of our storage library's write buffer. I had a look on the API xRingbufferSendAcquire() and my understanding for this is like a "malloc" but instead of allocates on heap, it "prepares" a contiguous RAM buffer for the consumer to directly modify (e.g. memcpy() from other stuff) on it, and then call xRingbufferSendComplete() to tell the ring buffer my modification on that particular piece of buffer is done.

But the ring buffer documentation below declares dma_item_t item instead of dma_item_t *item. Have I misunderstood anything?

image

Regards,
Jackson

Metadata

Metadata

Assignees

Labels

Resolution: NAIssue resolution is unavailableStatus: DoneIssue is done internally

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions