Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Liam Naddell
drivers
Commits
3e4544c4
Commit
3e4544c4
authored
Sep 20, 2016
by
Jeremy Soller
Browse files
Grant to allow passing data to scheme handler
parent
a737a712
Changes
1
Hide whitespace changes
Inline
Side-by-side
pcid/src/main.rs
View file @
3e4544c4
...
...
@@ -84,6 +84,9 @@ fn main() {
scheme
.read
(
&
mut
packet
)
.expect
(
"pcid: failed to read events from pci scheme"
);
println!
(
"{:?}"
,
packet
);
if
packet
.a
==
5
{
println!
(
"{}"
,
unsafe
{
::
std
::
str
::
from_utf8_unchecked
(::
std
::
slice
::
from_raw_parts
(
packet
.b
as
*
const
u8
,
packet
.c
))
});
}
packet
.a
=
0
;
...
...
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