Skip to content

Commit ce0e303

Browse files
jannaujohn-cabaj
authored andcommitted
fixup! rust: io_pgtable: Add io_pgtable abstraction
kernel API change: add optional alloc/free function pointers to bindings::io_pgtable_cfg Signed-off-by: Janne Grunau <j@jannau.net> (cherry picked from commit 8862278 https://github.com/AsahiLinux/linux) Signed-off-by: John Cabaj <john.cabaj@canonical.com>
1 parent cdfd321 commit ce0e303

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rust/kernel/io_pgtable.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ pub trait IoPageTable: crate::private::Sealed {
124124
coherent_walk: config.coherent_walk,
125125
tlb: &Self::FLUSH_OPS,
126126
iommu_dev: dev.raw_device(),
127+
alloc: None,
128+
free: None,
127129
__bindgen_anon_1: unsafe { mem::zeroed() },
128130
};
129131

0 commit comments

Comments
 (0)