DENX . Training2 . LddReadAndWrite

5.3.5. The read and write system calls

API

read and write file operations:

ssize_t read(struct *filp, char __user *buff, size_t count, loff_t *offp);
ssize_t write(struct *filp, const char __user *buff, size_t count, loff_t *offp);

userspace access:

unsigned long copy_to_user(void __user *to, const void *from, unsigned long count);
unsigned long copy_from_user(void *to, const void __user *from, unsigned long count);

----- Revision r1.2 - 14 Feb 2008 - 15:32 - MarkusKlotzbuecher
Copyright © 2002-2020 by DENX Software Engineering