Moving buffer to linux side