Skip to main content.

5.3.5. The read and write system calls


read and write file operations:

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

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