Skip to content

Conversation

@alexandruradovici
Copy link

This pull request adds a function to kernel::io::resource that returns a reference to a Resource that points to the kernel's IO Ports .

There does not seem to be any other way to reserve an IO Port range, as Resource::from_raw is private. This was inspired by https://github.com/AsahiLinux/linux/blob/5ce014f7fa18021227bf46bd155b4ccf375a9dd3/rust/kernel/io/resource.rs#L13-L18.

I am not sure that this is safe and any feedback is welcome.

Signed-off-by: Alexandru Radovici [email protected]

@alexandruradovici alexandruradovici changed the title Add a function that that returns a reference to the IoPort Resource rust: kernel: add a function that that returns a reference to the IoPort Resource Oct 26, 2025
@ojeda
Copy link
Member

ojeda commented Oct 27, 2025

Linux uses a patch-based workflow, i.e. GitHub PRs are not used. Please see https://rust-for-linux.com/contributing. Thanks!

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