Skip to content

rust: add &File argument to open callback.#574

Merged
wedsonaf merged 1 commit intoRust-for-Linux:rustfrom
wedsonaf:file-in-open
Nov 29, 2021
Merged

rust: add &File argument to open callback.#574
wedsonaf merged 1 commit intoRust-for-Linux:rustfrom
wedsonaf:file-in-open

Conversation

@wedsonaf
Copy link
Copy Markdown

This is for cases when drivers need to get information from File
during open, for example, the credentials. Such a need occurs is
Binder.

Signed-off-by: Wedson Almeida Filho wedsonaf@google.com

Comment thread rust/kernel/file_operations.rs
Comment thread rust/kernel/file_operations.rs Outdated
Copy link
Copy Markdown
Member

@bjorn3 bjorn3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is fine.

This is for cases when drivers need to get information from `File`
during `open`, for example, the credentials. Such a need occurs is
Binder.

Signed-off-by: Wedson Almeida Filho <wedsonaf@google.com>
@wedsonaf wedsonaf merged commit 9a15cd9 into Rust-for-Linux:rust Nov 29, 2021
@wedsonaf wedsonaf deleted the file-in-open branch November 29, 2021 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants