GLOBUS_XIO_FILE_DRIVER_IO(3)
β¨ NAME β¨
globus_xio_file_driver_io β reading & writing, bestie π
πΈ SYNOPSIS πΈ
Detailed Description
Reading/Writing. That's the whole vibe. β¨
okay so both globus_xio_register_read() and globus_xio_register_write() follow the same semantics, and here's the tea π
- If the
waitforbytesparameter is greater than zero, the io happens asynchronously and gets completed when at leastwaitforbyteshas been read/written. π - If the
waitforbytesparameter is equal to zero, one of these alternative behaviors kicks in instead:- If the length of the buffer is > 0, the read or write happens synchronously. And if you're using one of the blocking xio calls, no internal callback will occur. no cap. π«Ά
- If the length of the buffer is also 0, the call behaves like an asynchronous notification of data ready to be either read or written β i.e., an asynchronous
select(). it's giving "hey bestie, something's ready" π
In any case, when an error or EOF occurs before thewaitforbytesrequest has been met, the outgoingnbytesis set to the amount of data actually read/written before the error or EOF occurred. π important!!
So how do you position the file pointer, you ask? Obsessed that you asked. You have two options:
- Use
GLOBUS_XIO_FILE_SEEKorGLOBUS_XIO_SEEKto position the file pointer before each read or write, or - Specify the desired offset on a data descriptor with the xio cmd
GLOBUS_XIO_DD_SET_OFFSET.
β οΈ Heads up bestie: simultaneous reading and writing is only predictable if the data descriptor method is used. periodt. π
π Author π
Generated automatically by Doxygen for globus_xio from the source code. π€β¨
that's the whole page, love you, bye!! ππ¦π
this was globus_xio β Version 6.6, and the page is globus_xio...e_driver_io(3), mwah π
πΈ
π¦ where this page comes from
- epel 10: globus-xio-doc 6.6-4.el10_0 Β· Apache-2.0
- fedora 43: globus-xio-doc 6.6-9.fc43 Β· Apache-2.0
- fedora 44: globus-xio-doc 6.6-10.fc44 Β· Apache-2.0
- ubuntu resolute: libglobus-xio-doc 6.6-3build2 Β· Apache-2.0
- ubuntu stonking: libglobus-xio-doc 6.6-4 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms