device write() system calls
How does the write() system call work if it's writing it to a device port and how would I know if the data is being sent immediately and not to a buffer? For example,
fd = open( "/dev/ttyAM0", 0_RDWR );
write( fd, "abc\r", 4 )
I would imagine that after invoking the above system call, "abc\r" is being immediately sent to the device port at the path "/dev/ttyAM0". Is that true or is "abc\r" sent to somewhere else?
Thanks in advance for the help.
What is the maximum buffer size write uses for blok devices?
This is in continuation with the original question asked by the OP. So, what is the maximum buffer size write() uses for the block devices?
Is this buffer a configurable thing?
Thanks in advance,