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:
Pankaj Raghav 2023-03-24 09:30:12 +01:00 committed by Andreas Kling
parent aeb8224ec8
commit f32fde6152
Notes: sideshowbarker 2024-07-16 22:26:19 +09:00

View File

@ -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);