rust: dma: expose the count and size of CoherentAllocation
authorAlexandre Courbot <acourbot@nvidia.com>
Thu, 19 Jun 2025 13:23:46 +0000 (22:23 +0900)
committerDanilo Krummrich <dakr@kernel.org>
Mon, 23 Jun 2025 15:11:07 +0000 (17:11 +0200)
commitc0a3065d5def59a894afc8cf5e988396cd0c2f5e
tree17e9085fc75dd9959f38f9e8b5d7b57a9aeff041
parent14371e58cb2705b9ddc00efc3b94fb32612a753e
rust: dma: expose the count and size of CoherentAllocation

These properties are very useful to have (and to be used by nova-core)
and should be accessible, hence add them.

Additionally, add type invariants for the size of an allocation.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Link: https://lore.kernel.org/r/20250619-nova-frts-v6-2-ecf41ef99252@nvidia.com
[ Slightly extend the commit message. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/dma.rs