-
Notifications
You must be signed in to change notification settings - Fork 465
rust: iomem: add try_memcpy_fromio
method for IoMem<T>
#681
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
Conversation
0c351d7
to
e41cba5
Compare
|
e41cba5
to
930daf0
Compare
Rebased. |
930daf0
to
b4bffd8
Compare
|
May you please reopen the issue? I messed with github, sorry for the situation. |
I'm getting a message saying that branch was "force-pushed or recreated". Could you try to:
I'm not sure if it will work, but worth a try. |
This patch adds only runtime-checked bindings version of `memcpy_fromio()` function prefixed with `try_` similarly to read/write methods of `IoMem<T>` that is `readx` and `try_readx`. Signed-off-by: Maciej Falkowski <[email protected]>
b4bffd8
to
2f921ba
Compare
Thanks :) Worked perfectly |
A partial outage has just been resolved -- it may have been due to that. There was another one yesterday too, Actions did not work well for me. |
Seems so, before pushing the branch I had major problems with Github. After the push, the branch did not sync. |
I was having a hard time posting my second comment. I would push the button and nothing would happen. An outage explains that. |
This patch adds only runtime-checked bindings version of
memcpy_fromio()
function prefixed withtry_
similarlyto read/write methods of
IoMem<T>
that isreadx
andtry_readx
.This patch is a dependency of a Samsung Exynos trng driver provided initially in #554.
Changes v3 -> v4:
in favor of type inference rust: iomem: add
try_memcpy_fromio
method forIoMem<T>
#681 (comment),try_memcpy_fromio
method forIoMem<T>
#681 (comment),Changes v2 -> v3:
Error::EINVAL
->EINVAL
,Changes v1 -> v2:
try_memcpy_fromio
method forIoMem<T>
#681 (comment),[i8]
->[u8]
for input buffer rust: iomem: addtry_memcpy_fromio
method forIoMem<T>
#681 (comment),as *mut _
andas *const _
if possible rust: iomem: addtry_memcpy_fromio
method forIoMem<T>
#681 (comment),count
argument to take advantage of slicing rust: iomem: addtry_memcpy_fromio
method forIoMem<T>
#681 (comment),IoMem::<SIZE>
->Self
rust: iomem: addtry_memcpy_fromio
method forIoMem<T>
#681 (comment),Self::offset_ok_of_val()
rust: iomem: addtry_memcpy_fromio
method forIoMem<T>
#681 (comment).Signed-off-by: Maciej Falkowski [email protected]