Implement output from the shmfs
Put no-op barriers into correct places
Move helpers to separate compilation unit
Implement input and output FIFO logic