Sample Header Ad - 728x90

Concurrent write access to character device file

0 votes
1 answer
1561 views
I am wondering what happens when two processes write to a character device file at the same time. Currently, I am mostly worried about /dev/spidev0.0 on a Raspberry pi. If I assume correctly that it's the drivers task to deal with concurrent writes, does the driver see which processes have written which data? Or does the driver only see only continous data stream where all the concurrent writes get mixed in?
Asked by Daniel D. (65 rep)
Apr 6, 2021, 09:32 PM
Last activity: Apr 7, 2021, 01:01 AM