First page Back Continue Last page Overview Graphics
write()
ssize_t foo_write( struct file *f,
__user const char *buf,
size_t sz ,loff_t *off)
- Called when user-space uses the write() system call on the device
- The opposite of read, must read at most sz bytes from buf, write it to the device, update off and return the number of bytes written.