I\'m trying to write a wrapper function for read() system call , using asm volatile , but it won\'t work , since the res doesn\'t change its value .
Here\'s the code :
Run it under strace to see what's happening for sure, but I think your problem is that you put all the inputs in the output register list rather than the input register list...
strace