We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Pool
Send
Sync
1 parent 24ea6ca commit add8087Copy full SHA for add8087
rust/kernel/dma.rs
@@ -124,6 +124,14 @@ impl<T> Pool<T> {
124
}
125
126
127
+// SAFETY: A `Pool` is a reference (pointer) to an underlying C `struct
128
+// dma_pool`. Operations on the underlying pool is protected by a spinlock.
129
+unsafe impl<T> Send for Pool<T> {}
130
+
131
132
133
+unsafe impl<T> Sync for Pool<T> {}
134
135
impl<T> Allocator for Pool<T> {
136
type AllocationData = *mut bindings::dma_pool;
137
type DataSource = Arc<Pool<T>>;
0 commit comments