mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:27:43 +00:00
Kernel/StdLib: Change try_copy_n_to_user to copy_n_to_user
Let us keep the naming consistent between copy_n_from_user() and copy_n_to_user()
This commit is contained in:
parent
aeb8224ec8
commit
f32fde6152
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ template<typename T>
|
|||
}
|
||||
|
||||
template<typename T>
|
||||
[[nodiscard]] inline ErrorOr<void> try_copy_n_to_user(Userspace<T*> dest, T const* src, size_t count)
|
||||
[[nodiscard]] inline ErrorOr<void> copy_n_to_user(Userspace<T*> dest, T const* src, size_t count)
|
||||
{
|
||||
static_assert(IsTriviallyCopyable<T>);
|
||||
Checked<size_t> size = sizeof(T);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue