Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syscall
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
8
Issues
8
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
redox-os
syscall
Commits
08a3800e
Commit
08a3800e
authored
Jan 19, 2020
by
4lDO2
🖖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Also allow ?Sized types to get the physaddr.
parent
a2938fc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/io/dma.rs
src/io/dma.rs
+3
-0
No files found.
src/io/dma.rs
View file @
08a3800e
...
...
@@ -49,10 +49,13 @@ impl<T> Dma<T> {
virt
:
virt
})
}
}
impl
<
T
:
?
Sized
>
Dma
<
T
>
{
pub
fn
physical
(
&
self
)
->
usize
{
self
.phys.address
}
}
impl
<
T
>
Dma
<
[
T
]
>
{
/// Crates a new DMA buffer with a size only known at runtime.
/// ## Safety
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment