[rtems commit] Remove copyinfrom() and copyinstrfrom().

Sebastian Huber sebh at rtems.org
Mon Jul 11 11:47:03 UTC 2022


Module:    rtems
Branch:    master
Commit:    070f1b552c2bb0fff1fcfdde08534234ab62a45b
Changeset: http://git.rtems.org/rtems/commit/?id=070f1b552c2bb0fff1fcfdde08534234ab62a45b

Author:    John Baldwin <jhb at FreeBSD.org>
Date:      Wed May 20 20:58:17 2020 +0000

Remove copyinfrom() and copyinstrfrom().

These functions were added in 2001 and are currently unused.
copyinfrom() looks to have never been used.  copyinstrfrom() was used
for two weeks before the code was refactored to remove it's sole use.

Reviewed by:	brooks, kib
Obtained from:	CheriBSD
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D24928

---

 cpukit/include/machine/_kernel_uio.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/cpukit/include/machine/_kernel_uio.h b/cpukit/include/machine/_kernel_uio.h
index 7e45a28c16..59929cb03c 100644
--- a/cpukit/include/machine/_kernel_uio.h
+++ b/cpukit/include/machine/_kernel_uio.h
@@ -71,12 +71,8 @@ struct vm_page;
 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);



More information about the vc mailing list