Stakx's comment on your question already points to the complete answer : indeed, this is a write memory barrier.
But if you are not familiar with this concept, the document may not contain enough information about the why.
, , . .
, - .
:
*serial = 'h';
*serial = 'e';
*serial = 'l';
*serial = 'l';
*serial = 'o';
, , (, , , ).
, , .
, , wmb(): .
, volatile volatile : , , . .
- , PDF .