Re: [PATCH] rust: pci: add HeaderType enum and header_type() helper

From: Danilo Krummrich
Date: Sat Jan 03 2026 - 10:17:30 EST


On Sat Jan 3, 2026 at 3:38 PM CET, SeungJong Ha via B4 Relay wrote:
> This is my first patch to the Linux kernel, specifically targeting the
> Rust PCI subsystem.

Thanks for your contribution!

> This patch introduces the HeaderType enum to represent PCI configuration
> space header types (Normal and Bridge) and implements the header_type()
> method in the Device struct.

We usually do not add dead code in the kernel. Do you work on a user for this
API?