Files
zinnia/mem/usercopy.c
T
2026-07-20 01:53:04 +02:00

16 lines
590 B
C

#include <zinnia/bits/usercopy.h>
#include <zinnia/percpu.h>
#include <zinnia/usercopy.h>
bool usercopy_read(void* dst, const __user void* src, size_t len) {
return arch_usercopy_read(dst, src, len, &percpu_get()->sched.current->usercopy_region);
}
bool usercopy_write(__user void* dst, const void* src, size_t len) {
return arch_usercopy_write(dst, src, len, &percpu_get()->sched.current->usercopy_region);
}
bool usercopy_strlen(const __user char* str, size_t max, size_t* len) {
return arch_usercopy_strlen(str, max, len, &percpu_get()->sched.current->usercopy_region);
}