Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rust: pci: document Bar's endianness conversion

Document that the Bar's MMIO backend always assumes little-endian
devices and that its operations automatically convert to CPU endianness.

Signed-off-by: Marko Turk <mt@markoturk.info>
Link: https://lore.kernel.org/lkml/DE7F6RR1NAKW.3DJYO44O73941@kernel.org/
Link: https://patch.msgid.link/20251210112503.62925-1-mt@markoturk.info
[ Drop unrelated spelling fix. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>

authored by

Marko Turk and committed by
Danilo Krummrich
962cdb95 e4b3118b

+3
+3
rust/kernel/pci/io.rs
··· 18 18 19 19 /// A PCI BAR to perform I/O-Operations on. 20 20 /// 21 + /// I/O backend assumes that the device is little-endian and will automatically 22 + /// convert from little-endian to CPU endianness. 23 + /// 21 24 /// # Invariants 22 25 /// 23 26 /// `Bar` always holds an `IoRaw` inststance that holds a valid pointer to the start of the I/O