Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Nov 2008 18:37:50 +0100
From:      Alexej Sokolov <bsd.quest@googlemail.com>
To:        freebsd-hackers@freebsd.org
Subject:   copy, copyin, copyout
Message-ID:  <20081125173750.GA4131@debian.samsung.router>

next in thread | raw e-mail | index | archive | help
Hello, 
could anyone please explain to me the difference between functions: 
copystr() and copyinstr() ? 

For i386 copyinstr is implemented in assembler. I can not read
the assembler code very well. 

I tried to allocate a memory in space of user process using vm_map_find
and then with copystr() I could copy data between user and kernel
memory. copystr() seemed to be  able to do the same what copyinstr do. 

% uname -rp
7.0-RELEASE-p5 i386

-- 
Alexej Sokolov <bsd.quest@googlemail.com>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081125173750.GA4131>