Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167827040
D24928.id72029.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D24928.id72029.diff
View Options
Index: sys/kern/subr_uio.c
===================================================================
--- sys/kern/subr_uio.c
+++ sys/kern/subr_uio.c
@@ -345,44 +345,6 @@
return (0);
}
-int
-copyinfrom(const void * __restrict src, void * __restrict dst, size_t len,
- int seg)
-{
- int error = 0;
-
- switch (seg) {
- case UIO_USERSPACE:
- error = copyin(src, dst, len);
- break;
- case UIO_SYSSPACE:
- bcopy(src, dst, len);
- break;
- default:
- panic("copyinfrom: bad seg %d\n", seg);
- }
- return (error);
-}
-
-int
-copyinstrfrom(const void * __restrict src, void * __restrict dst, size_t len,
- size_t * __restrict copied, int seg)
-{
- int error = 0;
-
- switch (seg) {
- case UIO_USERSPACE:
- error = copyinstr(src, dst, len, copied);
- break;
- case UIO_SYSSPACE:
- error = copystr(src, dst, len, copied);
- break;
- default:
- panic("copyinstrfrom: bad seg %d\n", seg);
- }
- return (error);
-}
-
int
copyiniov(const struct iovec *iovp, u_int iovcnt, struct iovec **iov, int error)
{
Index: sys/sys/uio.h
===================================================================
--- sys/sys/uio.h
+++ sys/sys/uio.h
@@ -80,12 +80,8 @@
struct bus_dma_segment;
struct uio *cloneuio(struct uio *uiop);
-int copyinfrom(const void * __restrict src, void * __restrict dst,
- size_t len, int seg);
int copyiniov(const struct iovec *iovp, u_int iovcnt, struct iovec **iov,
int error);
-int copyinstrfrom(const void * __restrict src, void * __restrict dst,
- size_t len, size_t * __restrict copied, int seg);
int copyinuio(const struct iovec *iovp, u_int iovcnt, struct uio **uiop);
int copyout_map(struct thread *td, vm_offset_t *addr, size_t sz);
int copyout_unmap(struct thread *td, vm_offset_t addr, size_t sz);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 25, 7:49 PM (6 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37241277
Default Alt Text
D24928.id72029.diff (1 KB)
Attached To
Mode
D24928: Remove copyinfrom() and copyinstrfrom().
Attached
Detach File
Event Timeline
Log In to Comment