Code samples for direct IO