SysTutorials

Linux Manual Pages › Section 9

copy_to_user_fromio(9)

copy_to_user_fromio - copy data from mmio-space to user-space

Synopsis

int copy_to_user_fromio(void __user *dst, const volatile void __iomem *src, size_t count);

Arguments

dst

the destination pointer on user-space

src

the source pointer on mmio

count

the data size to copy in bytes

Description

Copies the data from mmio-space to user-space.

Return

Zero if successful, or non-zero on failure.

Copyright