aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/platform.c
diff options
context:
space:
mode:
authorAlexandre Courbot <[email protected]>2025-06-19 13:23:47 +0000
committerDanilo Krummrich <[email protected]>2025-06-23 15:11:07 +0000
commit26af856539842a4107c821e133fdda896022737f (patch)
tree09fb9c6d776036c0c18ad391b3ab1e41dac0c038 /rust/helpers/platform.c
parentrust: dma: expose the count and size of CoherentAllocation (diff)
downloadkernel-26af856539842a4107c821e133fdda896022737f.tar.gz
kernel-26af856539842a4107c821e133fdda896022737f.zip
rust: dma: add dma_handle_with_offset method to CoherentAllocation
Sometimes one may want to obtain a DMA handle starting at a given offset. This can be done by adding said offset to the result of `dma_handle()`, but doing so on the client side carries the risk that the operation will go outside the bounds of the allocation. Thus, add a `dma_handle_with_offset` method that adds the desired offset after checking that it is still valid. Signed-off-by: Alexandre Courbot <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Danilo Krummrich <[email protected]>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions