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
  • Wedson Almeida Filho's avatar
    rust: add `container_of!` macro · e9441710
    Wedson Almeida Filho authored Feb 19, 2024
    
    
    This macro is used to obtain a pointer to an entire struct
    when given a pointer to a field in that struct.
    
    Signed-off-by: default avatarWedson Almeida Filho <wedsonaf@gmail.com>
    Reviewed-by: default avatarAlice Ryhl <aliceryhl@google.com>
    Tested-by: default avatarAlice Ryhl <aliceryhl@google.com>
    Signed-off-by: default avatarMatt Gilbride <mattgilbride@google.com>
    Link: https://lore.kernel.org/r/20240219-b4-rbtree-v2-1-0b113aab330d@google.com
    
    
    Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
    e9441710
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7