1

System Call write

view story
linux-howto

http://stackoverflow.com – The system call write it's defined as follow: SYSCALL_DEFINE3(write, unsigned int, fd, const char __user *, buf, size_t, count) { struct file *file; ssize_t ret = -EBADF; int fput_needed; file = fget_light(fd, &fput_needed); if (file) { loff_t pos = file_pos_read(file); ret = vfs_write(file, buf, count, &pos); file_pos_write(file, pos); fput_light(file, fput_needed); } return ret; } I'd like to copy the variable buf to modify your content and then use this new variable at: vfs_write(file, new (HowTos)