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.
Send
Registration
1 parent 8933cf4 commit df70d04Copy full SHA for df70d04
rust/kernel/net/phy.rs
@@ -640,6 +640,10 @@ pub struct Registration {
640
drivers: Pin<&'static mut [DriverVTable]>,
641
}
642
643
+// SAFETY: The only action allowed in a `Registration` instance is dropping it, which is safe to do
644
+// from any thread because `phy_drivers_unregister` can be called from any thread context.
645
+unsafe impl Send for Registration {}
646
+
647
impl Registration {
648
/// Registers a PHY driver.
649
pub fn register(
0 commit comments