cookie
An opaque data structure to identify this data cookie. The cookie is likely to be an open file descriptor.
buf
Where to store the data.
buf_size
The number of available bytes of space in buf.