Re: at24 driver - a possible problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday 06 November 2009, Aleksandar Ivanov wrote:
> So I added the O_SYNC flag to the open() call. (The man says: O_SYNC
> - The file is opened for synchronous I/O. Any write()s on the
> resulting file descriptor will block the calling process until the
> data has been physically written to the underlying hardware.)
> But obviously this didn't fix the issue.
> 
> Correct me if I'm wrong but I would expect from a synchronous write()
> call to NOT finish before the data has been "phisically written".
> And in this case of course the read operation wouldn't need a waiting loop.
> What do you think?

Makes sense to me.  Another bug to fix.  :)



--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux