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

Devm considered harmful #241

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on May 6, 2024

  1. slides/kernel-frameworks: add "devm considered harmful"

    Draw attention to the limitations of devm, cfr. Laurent Pinchart's 2022
    LPC talk.
    
    Signed-off-by: Arnout Vandecappelle <[email protected]>
    arnout committed May 6, 2024
    Configuration menu
    Copy the full SHA
    1cb5f85 View commit details
    Browse the repository at this point in the history
  2. slides/kernel-frameworks: add example of dev_get_drvdata

    In the "specific struct has a reference to struct device" case, the
    private structure is typically found through dev_get_drvdata(). Add an
    example of that.
    
    Of course, many frameworks have their own "private" pointer because they
    already use drvdata, but explaining that as well would lead us too far.
    
    Signed-off-by: Arnout Vandecappelle <[email protected]>
    arnout committed May 6, 2024
    Configuration menu
    Copy the full SHA
    4437724 View commit details
    Browse the repository at this point in the history