Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pinned module #997

Draft
wants to merge 2 commits into
base: rust-next
Choose a base branch
from
Draft

Commits on Apr 12, 2023

  1. rust: introduce InPlaceModule

    This allows modules to be initialised in-place in pinned memory, which
    enables the usage of pinned types (e.g., mutexes, spinlocks, driver
    registrations, etc.) in modules without any extra allocations.
    
    Drivers that don't need this may continue to implement `Module` without
    any changes.
    
    Signed-off-by: Wedson Almeida Filho <[email protected]>
    wedsonaf committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    517d41b View commit details
    Browse the repository at this point in the history
  2. samples: rust: add in-place initilisation sample

    This is a modifid version of rust_minimal that is initialised in-place.
    
    Signed-off-by: Wedson Almeida Filho <[email protected]>
    wedsonaf committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    14cccdb View commit details
    Browse the repository at this point in the history