aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/pci.c
diff options
context:
space:
mode:
authorShankari Anand <[email protected]>2025-06-26 10:45:20 +0000
committerGreg Kroah-Hartman <[email protected]>2025-07-01 09:21:10 +0000
commitb9ff1c2a26fa31216be18e9b14c419ff8fe39e72 (patch)
treeffb1474bb0d20f6fb5fda00e518f5c2154114338 /rust/helpers/pci.c
parentrust: fix typo in #[repr(transparent)] comments (diff)
downloadkernel-b9ff1c2a26fa31216be18e9b14c419ff8fe39e72.tar.gz
kernel-b9ff1c2a26fa31216be18e9b14c419ff8fe39e72.zip
rust: miscdevice: clarify invariant for `MiscDeviceRegistration`
Reword and expand the invariant documentation for `MiscDeviceRegistration` to clarify what it means for the inner device to be "registered". It expands to explain: - `inner` points to a `miscdevice` registered via `misc_register`. - This registration stays valid for the entire lifetime of the object. - Deregistration is guaranteed on `Drop`, via `misc_deregister`. Reported-by: Benno Lossin <[email protected]> Closes: https://github.com/Rust-for-Linux/linux/issues/1168 Fixes: f893691e7426 ("rust: miscdevice: add base miscdevice abstraction") Signed-off-by: Shankari Anand <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'rust/helpers/pci.c')
0 files changed, 0 insertions, 0 deletions