Lines Matching defs:SGEntry
28 //! Individual entries in the table are represented by [`SGEntry`], which can be accessed by
48 /// An `SGEntry` represents a single, physically contiguous segment of memory that has been mapped
52 /// or own [`SGEntry`] objects directly.
54 pub struct SGEntry(Opaque<bindings::scatterlist>);
56 // SAFETY: `SGEntry` can be sent to any task.
57 unsafe impl Send for SGEntry {}
59 // SAFETY: `SGEntry` has no interior mutability and can be accessed concurrently.
60 unsafe impl Sync for SGEntry {}
62 impl SGEntry {
63 /// Convert a raw `struct scatterlist *` to a `&'a SGEntry`.
125 /// All [`SGTable`] variants can be iterated over the individual [`SGEntry`]s.
166 Some(unsafe { SGEntry::from_raw(ptr) })
464 /// An [`Iterator`] over the DMA mapped [`SGEntry`] items of an [`SGTable`].
466 /// Note that the existence of an [`SGTableIter`] does not guarantee that the [`SGEntry`] items
469 pos: Option<&'a SGEntry>,
475 type Item = &'a SGEntry;
487 unsafe { SGEntry::from_raw(next) }