Add __restrict qualifiers to copyinfrom, copyinstrfrom, copystr, copyinstr,
copyin and copyout.
This commit is contained in:
parent
4609c9a528
commit
4abb4ff34d
@ -448,7 +448,8 @@ uio_yield(void)
|
||||
}
|
||||
|
||||
int
|
||||
copyinfrom(const void *src, void *dst, size_t len, int seg)
|
||||
copyinfrom(const void * __restrict src, void * __restrict dst, size_t len,
|
||||
int seg)
|
||||
{
|
||||
int error = 0;
|
||||
|
||||
@ -466,7 +467,8 @@ copyinfrom(const void *src, void *dst, size_t len, int seg)
|
||||
}
|
||||
|
||||
int
|
||||
copyinstrfrom(const void *src, void *dst, size_t len, size_t *copied, int seg)
|
||||
copyinstrfrom(const void * __restrict src, void * __restrict dst, size_t len,
|
||||
size_t * __restrict copied, int seg)
|
||||
{
|
||||
int error = 0;
|
||||
|
||||
|
@ -185,12 +185,16 @@ void bzero(void *buf, size_t len) __nonnull(1);
|
||||
|
||||
void *memcpy(void *to, const void *from, size_t len) __nonnull(1) __nonnull(2);
|
||||
|
||||
int copystr(const void *kfaddr, void *kdaddr, size_t len,
|
||||
size_t *lencopied) __nonnull(1) __nonnull(2);
|
||||
int copyinstr(const void *udaddr, void *kaddr, size_t len,
|
||||
size_t *lencopied) __nonnull(1) __nonnull(2);
|
||||
int copyin(const void *udaddr, void *kaddr, size_t len) __nonnull(1) __nonnull(2);
|
||||
int copyout(const void *kaddr, void *udaddr, size_t len) __nonnull(1) __nonnull(2);
|
||||
int copystr(const void * __restrict kfaddr, void * __restrict kdaddr,
|
||||
size_t len, size_t * __restrict lencopied)
|
||||
__nonnull(1) __nonnull(2);
|
||||
int copyinstr(const void * __restrict udaddr, void * __restrict kaddr,
|
||||
size_t len, size_t * __restrict lencopied)
|
||||
__nonnull(1) __nonnull(2);
|
||||
int copyin(const void * __restrict udaddr, void * __restrict kaddr,
|
||||
size_t len) __nonnull(1) __nonnull(2);
|
||||
int copyout(const void * __restrict kaddr, void * __restrict udaddr,
|
||||
size_t len) __nonnull(1) __nonnull(2);
|
||||
|
||||
int fubyte(const void *base);
|
||||
long fuword(const void *base);
|
||||
|
@ -89,9 +89,10 @@ void uio_yield(void);
|
||||
int uiomove(void *, int, struct uio *);
|
||||
int uiomove_frombuf(void *buf, int buflen, struct uio *uio);
|
||||
int uiomoveco(void *, int, struct uio *, struct vm_object *, int);
|
||||
int copyinfrom(const void *src, void *dst, size_t len, int seg);
|
||||
int copyinstrfrom(const void *src, void *dst, size_t len,
|
||||
size_t *copied, int seg);
|
||||
int copyinfrom(const void * __restrict src, void * __restrict dst,
|
||||
size_t len, int seg);
|
||||
int copyinstrfrom(const void * __restrict src, void * __restrict dst,
|
||||
size_t len, size_t * __restrict copied, int seg);
|
||||
|
||||
#else /* !_KERNEL */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user