다른 명령
새 문서: 분류: 리눅스 커널 API == 개요 == copy_to_user -- Copy a block of data into user space. unsigned long copy_to_user (void __user * to, const void * from, unsigned long n); 인자 to Destination address, in user space. from Source address, in kernel space. n Number of bytes to copy. 문맥 커널 스페이스와 유저 스페이스의 메모리 View가 다르기 때문에 User context로 커널 스페이스의 메모리를 복사하기 위해... |
(차이 없음)
|
2023년 2월 3일 (금) 12:00 기준 최신판
개요
copy_to_user -- Copy a block of data into user space.
unsigned long copy_to_user (void __user * to, const void * from, unsigned long n);
인자
to
Destination address, in user space.
from
Source address, in kernel space.
n
Number of bytes to copy.
문맥
커널 스페이스와 유저 스페이스의 메모리 View가 다르기 때문에 User context로 커널 스페이스의 메모리를 복사하기 위해선 이 함수를 사용해야 한다.