Skip to main content.

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);
5.3.4. The open and release methods 1. Denx Training Topics 5.3.6. Non-Blocking IO
Prev Home Next