Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
You need to sign in or sign up before continuing.
  • linux
  • rust
  • kernel
  • lib.rs
Find file BlameHistoryPermalink
  • FUJITA Tomonori's avatar
    rust: core abstractions for network PHY drivers · f20fd544
    FUJITA Tomonori authored Dec 13, 2023
    This patch adds abstractions to implement network PHY drivers; the
    driver registration and bindings for some of callback functions in
    struct phy_driver and many genphy_ functions.
    
    This feature is enabled with CONFIG_RUST_PHYLIB_ABSTRACTIONS=y.
    
    This patch enables unstable const_maybe_uninit_zeroed feature for
    kernel crate to enable unsafe code to handle a constant value with
    uninitialized data. With the feature, the abstractions can initialize
    a phy_driver structure with zero easily; instead of initializing all
    the members by hand. It's supposed to be stable in the not so distant
    future.
    
    Link: https://github.com/rust-lang/rust/pull/116218
    
    
    
    Signed-off-by: default avatarFUJITA Tomonori <fujita.tomonori@gmail.com>
    Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
    Reviewed-by: default avatarAlice Ryhl <aliceryhl@google.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    f20fd544
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7