Skip to content

Avoid allocations during runtime#244

Draft
JJL772 wants to merge 4 commits intopre-releasefrom
pr-no-allocs
Draft

Avoid allocations during runtime#244
JJL772 wants to merge 4 commits intopre-releasefrom
pr-no-allocs

Conversation

@JJL772
Copy link
Member

@JJL772 JJL772 commented Feb 7, 2026

Description

Pre-allocates scratch buffers so we don't have to keep calling kmalloc during dmaReadIndex and such.

Introduces the following limitations:

  • Max number of indices that can be returned at once is cfgRxCount + cfgTxCount
  • Max number of buffers that can be read or written at once is cfgRxCount + cfgTxCount

If those conditions are violated, the ioctl returns with error.

I am not sure if the DAQ is trying to read/write/return more than its allotted amount.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant